Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Stopping a running script

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Fri Jun 16, 2006 2:57 pm    Post subject: Stopping a running script Reply with quote

Is there any way to stop a currently running script to stop running?
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Fri Jun 16, 2006 5:56 pm    Post subject: Reply with quote

From where? Inside a script, arbitrarily, no (unless you're using a WIP version), However, I tend to use patterns like this:

Code:
v:= true #some global variable
while(v) do, begin
  #stuff
  wait(1)
end


And, elsewhere in the script, set "v" to false. This will cause the loop to terminate (when it gets a chance).
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Sat Jun 17, 2006 9:13 pm    Post subject: Reply with quote

Thanks. I also realized a little bit of tag work could probably stop the script from executing, but I think a stop script plotscript where you could specify which script would come in handy. Thanks for the tip.
_________________
http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00

Back to top
View user's profile Send private message Send e-mail
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Jun 18, 2006 5:42 am    Post subject: Reply with quote

If it could be implemented, it would only be possible to use it in special cases, I imagine.

Ubersetzung will have an exitscript command.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group