|
jesterinc Beginner
Joined: 18 Jul 2003 Posts: 13 Location: USA
|
Posted: 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? |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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} |
|
|
|
jesterinc Beginner
Joined: 18 Jul 2003 Posts: 13 Location: USA
|
Posted: 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?
|
|
|
|
Valdar Novice
Joined: 17 May 2003 Posts: 30 Location: USA
|
Posted: 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 :)
|
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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. |
|
|
|
jesterinc Beginner
Joined: 18 Jul 2003 Posts: 13 Location: USA
|
Posted: 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.
|
|
|
|
|
|