View Single Post
  #873    
Old April 22nd, 2013 (08:36 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 6,956
Quote originally posted by kaedearagaki:
Hey diego would you mind checking on this script?

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x828 <-- place this in error 1
lock
faceplayer
textcolor 0x00
[error 1]
if 0x1 goto @done
playsong 0x12E 0x0
applymovement 0x04 @move
applymovement 0xFF @move2
[error 2]
msgbox @hi 0x6
[error 3]
if 0x0 goto @start1 <-- I would assume that this is still under your [checkflag 0x828] command.
release
end
I am not going to fix your script. It's up to you to do so, however, I will try and help you understand your common mistakes.
Corrections and notes are under your SPOILER tag.
Hopefully, this'll help you avoid the mistakes in the future.

Explanation is under here...
Spoiler:
error 1 - commands [lock] and [faceplayer] are generally located at the first lines of the script. also, the command [checkflag] should always be followed by the [if] command.
error 2 - an [applymovement] code, or a group of [applymovement] codes should always be followed by [waitmovement x] code, where the x is either 0 or the person number of an NPC moving.
error 3 - you need to place your [checkflag] command here again, since your [if] statement has nothing to compare with.


Quote originally posted by kaedearagaki:
It's hanging when the door opens then closed. What should I do?!
That is because you didn't properly end your script. The address [door] lacks the codes [release] and [end], and other things if you plan on adding a few more after that.
__________________

3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)


Reply With Quote