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


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Mon Mar 03, 2003 4:57 pm   

Bad memory and trigger help. :)
 
Hi, I'm hoping someone can help me.

I'm trying to make a trigger that will fire off a commands every 4th round of combat. Thankfully the MUD I'm on gives you a status bar every round. Somthing like;

HP: 300 CP: 234

So every 4th tim that comes up I need to send a command (smack) to the MUD.

Any help would be greatly appreciated.

Thanks
Tyger
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Mon Mar 03, 2003 5:00 pm   
 
Try:

#VAR TimesFired 0
#TRIGGER {HP: %d CP: %d} {#ADD TimesFired 1;#IF (@TimesFired >= 4) {smack;#VAR TimesFired 0}} "" {prompt}



 - Charbal
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Wed Mar 05, 2003 6:23 pm   
 
Thanks Carbel!


Works like a charm. :)


Thanks again,
Tyger
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