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


Joined: 17 Oct 2000
Posts: 38

PostPosted: Fri Nov 29, 2002 9:44 pm   

Alarm Assistance requested
 
Hi, I'm playing a starwars mud that includes hyperspacing(Star Wars Reach of the Empire), the only problem is you have to manually drop out of hyperspace. I was wondering if it would be possible ot create a trigger to setup an alarm to drop me out of hyperspace, based off this output



.--------------------------------------------------------------------------.
| ORIGIN | DESTINATION | COURSE DATA |
| (Current Position) | Alderaan | Bearing: 94/-12 |
| X: -2033398 | X: -251847 | Distance: 1827841 |
| Y: 501235 | Y: 385915 | Speed: 9000 Jump |
| Z: 761284 | Z: 369134 | ETA: 8m 7s |
'--------------------------------------------------------------------------'


Edit: I want it to drop me out at 0 seconds, or if that's not possible beep me at like 10 seconds. Thanks for the help!

Jerle Minara,
zMUD 6.37a
Win 2k Advanced Server
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 29, 2002 10:01 pm   
 
#TR {ETA:%s(%d)m%s(%d)s} {#ALA +%eval((%1 * 60) + %2) {drop out of hyperspace}}

LightBulb
Senior Member
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Nov 29, 2002 10:03 pm   
 
You might need to work on the pattern of the trigger to make sure that it doesn't match when you don't want it to, but here is a basic approach:
#TRIGGER {ETA:%s(%d)m%s(%d)s} {#VAR eta {%eval((%1*60) + %2)};#ALARM {+@eta} {drop out of hyperspace}}

Kjata
Reply with quote
JerleMin
Novice


Joined: 17 Oct 2000
Posts: 38

PostPosted: Fri Nov 29, 2002 10:18 pm   
 
Thanks for the quick replies! Much appreciated :)

Jerle Minara,
zMUD 6.37a
Win 2k Advanced Server
Reply with quote
JerleMin
Novice


Joined: 17 Oct 2000
Posts: 38

PostPosted: Sat Nov 30, 2002 12:27 am   
 
One more request.. Is there a way to set it up so that it works on seconds? Sometimes you're only like 50 seconds out.. So the eta is just..

ETA: 12s or something. How would I adjust the trigger to account for either?

Jerle Minara,
zMUD 6.37a
Win 2k Advanced Server
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Nov 30, 2002 1:47 am   
 
Just make a second trigger.
#TR {ETA:%s(%d)s} {#ALA +%eval(%1) {drop out of hyperspace}}

You probably don't even need the %eval for this one.


LightBulb
Senior Member
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