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
Moorthon
Newbie


Joined: 29 Sep 2005
Posts: 5

PostPosted: Thu Sep 29, 2005 9:00 am   

Trigger Help
 
On a MUD I am playing on, there is a system implemented that you have to wait a certain amount of time to either "Train" or "Learn" from NPCs or in certain situations. I need assistance making a trigger to automatically re-train after the time specified expires, it should be noted that the time isn't always the same.

Code:

Pattern: You will be able to train again in 5 min 39 sec.


The above is the exact phrase given. Although the time varies.

I am unsure how to make a trigger that will not interfere with my normal triggers, #WAIT is the debil!, while I am waiting for the time to pass by.

Basically what I want is this.

- You will be able to train again in 5 min 39 sec.
- Add a timer for 5 seconds longer than my wait time. (5 min 44 sec)
- When timer expires: Save ; Train


Thanks in advance.
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Sep 29, 2005 2:01 pm   
 
#TRIGGER {You will be able to train again in (%d) min (%d) sec.} {#MATH wtfreak ((%1*60)+%2);#ALARM +%eval( @wtfreak) {Save;Train}}
#var wtfreak {} {}

#echo You will be able to train again in 0 min 5 sec.

5 seconds later:

Save
Train
_________________
http://www.Aardwolf.com
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