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


Joined: 03 May 2008
Posts: 5

PostPosted: Mon Jun 15, 2009 2:57 am   

Time elapsed between two triggers.
 
There was a script posted long ago and I cannot find it. Does anyone have or know where a timer for the time elapsed between two triggers can be found? Or how hard is it to code?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jun 15, 2009 3:23 am   
 
PrevTriggerTime = @CurTriggerTime
CurTriggerTime = %time()
#say This trigger fired %eval(@CurTriggerTime - @PrevTriggerTime)

You will probably have to tweak things a little, since I'm not sure ZMud does time math like this.
_________________
EDIT: I didn't like my old signature
Reply with quote
bbs108
Beginner


Joined: 22 Jun 2009
Posts: 12

PostPosted: Mon Jun 22, 2009 5:57 pm   
 
#trigger {whatever} {#var starttime %ctime}

#trigger {*:*:*} {#var endtime %ctime}

#trigger {whatever for ur show time trigger} {#show %eval(@endtime-@starttime)seconds have passed}
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