Post new topic    
Liquid Metal Slime
Send private message
Cancel a Script in Motion 
 PostMon Jun 14, 2010 11:19 pm
Send private message Reply with quote
Is there a way to cancel a running script in OHR?

My scenario, is that I am running a title screen I built as a map in OHR. The newgame script is running through the entire thing, but I set up an "onkeypress" script that pulls the menu up that is at the end of the newgame script (which is the title screens code). I've pinpointed it to be that the menu is suspending the newgame script and when I use a selection from the menu, it continues to run the title screen.

I didn't see anything on the wiki.

If there isn't, can anyone suggest a better way to do what I'm trying to do? I don't want the player to have to see the entire animation everytime if they don't want to, that's why I wanted to make the on key press shortcut thing.
Liquid Metal King Slime
Send private message
 
 PostMon Jun 14, 2010 11:33 pm
Send private message Reply with quote
I am a little confused about exactly what your script is doing, but I am certain there is a way to make it do what you want.

If you can describe in more detail (or even better, show me your script) I think I can help.
Liquid Metal Slime
Send private message
 
 PostMon Jun 14, 2010 11:47 pm
Send private message Reply with quote
I'm sorry you replied, I was able to resolve the problem. Heh. JSH helped me set up something using variables for each of my wait commands. It works perfectly.

for(wtime,1,70,1)
do(
if(keyispressed(28))
then(
titlekeypress
exit script
)
wait
)
Liquid Metal King Slime
Send private message
 
 PostTue Jun 15, 2010 12:01 am
Send private message Reply with quote
No worries :)
Slime Knight
Send private message
 
 PostTue Jun 15, 2010 8:22 am
Send private message Reply with quote
speaking of this, functionality to end a parent script from a script called from it would be pretty cool. then RMZ could house his intro waits into a separate 'intowait' script, and just pass an argument to it for how long it waits if no key is pressed.
Display posts from previous: