|
Hotdogking8 Newbie
Joined: 17 Apr 2004 Posts: 2
|
Posted: 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. |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: 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 |
|
|
|
Hotdogking8 Newbie
Joined: 17 Apr 2004 Posts: 2
|
Posted: Sun Apr 18, 2004 3:59 am |
Works great, thanks for the help!
|
|
|
|
|
|