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


Joined: 20 Sep 2002
Posts: 26
Location: Austria

PostPosted: Thu Aug 07, 2003 2:24 pm   

Trigger - hit points and mana
 

Hi,

the information that i receive from the Mud for HP and Mana looks like this:

----- LPs: 294/368 ( +1) MPs: 44/249 ( +1) --(WK)---(EH)---(RK)--------
----- LPs: 297/368 ( +1) MPs: 47/249 ( +1) --(WK)----------(RK)--------
----- LPs: 317/368 ( +1) MPs: 67/249 ( +1) ----------------(RK)--------
----- LPs: 315/368 ( +1) MPs: 77/249 ( +1) ----------------(rk)--------
----- LPs: 323/368 ( +1) MPs: 70/249 ( +1) ----------------------------


I have tried to make a trigger:
#tr {----- LPs: &%dB1/&%dB2 ~(%s&B3~) MPs: &%dB4/&%dB5 ~(%s&B6~) -}
and store the values into some #vars but i have no idea how i can trigger the end:
This means that three Spells are on:
--(WK)---(EH)---(RK)--------
The Second Spell is out (#var EH should be empty now)
--(WK)----------(RK)--------
Only one more Spell is still active (set the others empty)
----------------(RK)--------

I hope someone can explain me what i have to do...

Greetings, Baldur
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 07, 2003 7:09 pm   
 
This does NOT need to be combined with the trigger for HP and Mana. Use the red portion if this is a prompt.
#TR {%n~) --(*)} {#IF %pos( WK, %1) {#VAR WK 1} {#VAR WK 0};#IF %pos( EH, %1) {#VAR EH 1} {#VAR EH 0};#IF %pos( RK, %1) {#VAR RK 1} {#VAR RK 0}} {} {nocr|prompt}
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