View Single Post
Old April 22nd, 2013 (8:36 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~
  • Silver Tier
Join Date: May 2007
Location: Philippines
Age: 26
Gender: Male
Nature: Careful
Posts: 8,507
Originally Posted by kaedearagaki View Post
Hey diego would you mind checking on this script?

#dynamic 0x800000

#org @start
checkflag 0x828 <-- place this in error 1
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.
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...
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.

Originally Posted by kaedearagaki View Post
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.

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

Reply With Quote