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
jesterinc
Beginner


Joined: 18 Jul 2003
Posts: 13
Location: USA

PostPosted: Tue Aug 12, 2003 2:49 am   

Timer
 
I'm confused as to how timming scripts work but i'd like to make a trigger that takes

Pilgrimage Azov 674

and counts down 674 seconds or whatever the number is which equals the total amount of seconds before the Pilgrimage runs out. To send perform rite of pilgrimage to the mud when the time runs out. What I have now is:

Trigger: Pilgrimage (%w*) (%d)
Command:
#TS %1

but it doesn't give the effect I want, any ideas?
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Tue Aug 12, 2003 9:12 am   
 
You dont need to use the tick timer, because rites don't operate on a tick, they operate for n seconds after you perform it. Instead, use:
#ALARM +number of seconds {Commands to perform when the timer runs out}

So..
#TR {Pilgrimage %w (%d)} {#ALA +%1 {perform rite of pilgrimage}}

Should do the trick. Of course.. You might want to give it an ID and make a button/alias to toggle it on/off. I.e.

#TR "autopilg" {Pilgrimage %w (%d)} {#ALA +%1 {perform rite of pilgrimage}}
#AL apon {#T+ autopilg;#ECHO Auto pilgrimage on}
#AL apoff {#T- autopilg;#ECHO Auto pilg off}
Reply with quote
jesterinc
Beginner


Joined: 18 Jul 2003
Posts: 13
Location: USA

PostPosted: Wed Aug 13, 2003 4:50 am   
 
Thanks much Caled, seems to be working just fine but one more question. How would I add 1 second after the alarm goes off before I perform rite of pilgrimage?
Reply with quote
Valdar
Novice


Joined: 17 May 2003
Posts: 30
Location: USA

PostPosted: Wed Aug 13, 2003 7:38 am   
 
If i understand you correctly you want to essentially make the thing trigger 1 second later right? I think using %eval(%1 + 1) might work... havnt tested it myself though... should give ya some sorta starting spot if nothing else :)
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Thu Aug 14, 2003 3:43 pm   
 
#TR "autopilg" {Pilgrimage %w (%d)} {#ALA +%eval(%1 + 1) {perform rite of pilgrimage}}
Just as Valdar said.. I'm just making sure you know how to put the eval in the right spot.
Reply with quote
jesterinc
Beginner


Joined: 18 Jul 2003
Posts: 13
Location: USA

PostPosted: Thu Aug 14, 2003 7:53 pm   
 
Thanks Caled, I would of had to post again and ask where it went. And thank you too Valdar the help is appreciated.
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