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
Dakina
Novice


Joined: 22 Apr 2011
Posts: 36
Location: Colorado

PostPosted: Tue Aug 23, 2011 11:21 am   

Could someone help me with a few alarms?
 
So I want to make a alarm that starts a 30 min countdown from:
falls under your spell

the screen looks like:
207H 168V 1X 30.63% 315C Mem:6 Exits:EW> It's a pretty ghastly sight! Searching through the remains, you find:
corpse (here) :
a footmans pike

207H 168V 1X 30.63% 315C Mem:6 Exits:EW> lok
Huh?!

207H 168V 1X 30.63% 315C Mem:6 Exits:EW> TICK IN 10 SECONDS.
gtell <!<!<- Tic in 10 ->!>!>
You are not a member of a group.

207H 168V 1X 30.63% 315C Mem:6 Exits:EW> c 'ani' corpse
You utter the words, 'animate dead'
The corpse of a mercenary falls under your spell.
The corpse of a mercenary starts following you.

207H 168V 1X 30.63% 315C Mem:7 Exits:EW>

I want it to tell me every 5 mins how much time is left, and ideally a alias to type, like corpsetime or something to tell me exactle how much time is left.

I dont quiet get how to do it, there are several other alarms I'd like to make, but if someone can explain it a little better for me Ill try to make the others myself
Reply with quote
myddrun
Wanderer


Joined: 31 Mar 2005
Posts: 58

PostPosted: Fri Sep 16, 2011 1:13 pm   
 
Well.... And I may not be able to help very much.

I'm sure there would be a way to do this but I'm not sure how. I dont think there is a way of seeing how much time is left until an alarm triggers. All I use alarms for is firing repetative commands much like a ticker would except you can more alarms and only one ticker.

You could use the blunt hammer approach by creating multiple alarms at 30 second intervals.

#alarm +300 {#echo X minutes to go}
#alarm +600 {#echo x-5 minutes to go} etc.

Allthough that wouldn't tell you to the second.

But actually counting the number of seconds? You might be able to use your trigger to create a variable that holds the system time. Then the alias would need to use the variable to count how many seconds had elapsed, then reverse the sum to calculate how much time was left?
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