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


Joined: 17 Apr 2004
Posts: 2

PostPosted: Sat Apr 17, 2004 7:00 pm   

trigger/variable question
 
Alright, I was trying to creat an auto-rescue trigger, but am running into a wall with my limited know-how on zMUD functions. Perhaps someone can tell me how to fix my problem. This is the Mud line I am working with...

548H 121M 70V Ferrenx:(excellent) Reanut:(excellent) >

The MOB is "Ferrenx" while the tank is "Reanut."
The idea is to have a list of group members, and when one of the assigned names to the list appears in the "tank" position in the line I posted, the triggers targets them for rescue. I am unsure of how to make zMUD disregard the changing info from the line (hp mana ect) and just look for the names in tank position.

Any help would be much appreciated.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Sun Apr 18, 2004 1:58 am   
 
quote:
548H 121M 70V Ferrenx:(excellent) Reanut:(excellent) >


well if its always gonna be in that form
HPs MANA MOVES MOB:CONDITION TANK:CONDITION >

you can just do this

#trigger {%dH %dM %dV %w:~(%w~) (%w):~(%w~) ~>} {tank = %1}

that will give the variable "tank" the name of the person who was in the tank position as you stated.

Jesse
Reply with quote
Hotdogking8
Newbie


Joined: 17 Apr 2004
Posts: 2

PostPosted: Sun Apr 18, 2004 3:59 am   
 
Works great, thanks for the help!
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