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
takke
Beginner


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: Wed Feb 05, 2003 9:27 am   

Random timetrigger
 
Hi

I need help to make a trigger that will
execute random. Example

You summon a mystic sword.
Trigger: summon one again in 1-30 sec.

Hope you understand the quastion
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Feb 05, 2003 12:13 pm   
 
#TR {You summon mystic sword.$} {#EXEC {%concat("#ALARM {+",%random(1,30),"} {summon sword}")}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Feb 05, 2003 6:11 pm   
 
The simpler
#TR {^You summon a mystic sword} {#ALA %random( 1, 30) {summon sword}}
will also work (v6.40).

LightBulb
Advanced Member
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Feb 05, 2003 11:52 pm   
 
Cool, never saw that Zugg added that. Guess I should read back through the version history again.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Feb 06, 2003 4:14 am   
 
Heh, I didn't know it was ever missing so I just went ahead and tried it. It makes an interesting entry in the editor's list of triggers.
 +%random( 1, 30)

LightBulb
Advanced 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