Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Zene
Beginner


Joined: 10 Jul 2002
Posts: 26
Location: Canada

PostPosted: Mon Jul 15, 2002 4:05 pm   

Single trigger
 
Hi..i'm trying to make an alias that pauses my script..and then another one to continue..
so what my script is doing is reading from file 1 ...at line @count.. (count being the variable)
to stop the script i set the current count to 9999
and save the count before that to old_count
then to continue i put that old_count back into count..and kill something..and it starts up again
BUT..if i hit STOP (my alias name) twice ..(accidentally or what not) i can't continue again because my line had been lost..
so is there a way to dsiable this variable until i run CONT again (the other alias name).... but they are already all within a class (for that specific area i am running)
so would i have to make another separate class for the alias itself or is there a simpler way...?

Thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jul 15, 2002 6:43 pm   
 
#VAR unstopped 1
#AL STOP {#IF (@unstopped) {#VAR unstopped 0;the rest of your alias}}
#AL CONT {#IF (@unstopped) {} {#VAR unstopped 1;the rest of your alias))

LightBulb
Senior Member
Reply with quote
Zene
Beginner


Joined: 10 Jul 2002
Posts: 26
Location: Canada

PostPosted: Mon Jul 15, 2002 10:55 pm   
 
good call! :) thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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

© 2009 Zugg Software. Hosted by Wolfpaw.net