PDA

View Full Version : Signposts



Revfan9
03-24-2008, 01:52 PM
SETR sd0,x
SETR sd1,x
SETR sd2,y
SETR sd3,y
SUBV sd0,8
ADDV sd1,24
ADDV sd3,24
WAIT WAITFRAME
COMPARER linkx,sd0
GOTOMORE POS1
GOTOLESS WAIT
POS1 COMPARER linkx,sd1
GOTOLESS POS2
GOTOMORE WAIT
POS2 COMPARER linky,sd2
GOTOMORE POS3
GOTOLESS WAIT
POS3 COMPARER linky,sd3
GOTOLESS POS4
GOTOMORE WAIT
POS4 COMPAREV linkdir,0
GOTOTRUE POS5
GOTOFALSE WAIT
POS5 COMPAREV inputa,1
GOTOTRUE DISPLAY
GOTOFALSE WAIT
DISPLAY SETV inputa,0
PLAYSOUNDR d0
MSGSTRR d1
GOTO WAIT

I decided to try to make my own signpost script as an excercise rather than use the Zscript one already around, it's a good way to get back into it.

Anyhow, the script works fine, my only quip being that when I use the "Messages Freeze All Action" rule to make it so that Link can't walk away, the player has to read the sign twice just to walk away. Should I just turn the rule off and make the message vanish when Link walks away, or is there another way I can do it?