View Single Post
  #6236    
Old November 9th, 2011, 03:51 PM
DrerAhv's Avatar
DrerAhv
She That Derps in the Night
 
Join Date: Mar 2011
Location: NH, USA
Age: 18
Gender: Female
Nature: Lonely
Quote:
Originally Posted by DavidJCobb View Post
Remove the red. That needs to be a string and hence can't have commands. The commands can be safely removed since the script that shows that string also runs them.
Thank you. I have to ask another question about this particular script;
If I wanted to make the player stay still while the movements were applied and message boxes displayed, what would I do? As of now the movements/message boxes are only enacted when I walk up to the character and talk to them; I want it to happen automatically.

Code:
#org @start
 checkflag 0x828
 if 0x0 goto @hey! 
if 0x1 goto @nightmare 
end  

#org @hey! 
setflag 0x828 
lock 
applymovement 0x4 @alert 
waitmovement 0x0 
msgbox @awake 0x6 
release 
end  

#org @awake 
= [player], wake up! \nwe're here. We're here, \nplayer. 
 #org @alert 
#raw 0x56 0xFE 

 #org @nightmare 
checkflag 0x828 
if 0x0 goto @hey! 
if 0x1 goto @okay 
 #org @okay 
lock 
faceplayer 
msgbox @feeling 0x6 
release
end  

#org @feeling 
= [player], \nare you feeling okay? \nYou looked like you were \nhaving a nightmare.
__________________
The philosopher Didactylos has summed up an alternative hypothesis as "Things just happen. What the hell."

Last edited by DrerAhv; November 9th, 2011 at 03:56 PM. Reason: Including the code