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


Joined: 02 Sep 2002
Posts: 6
Location: Malaysia

PostPosted: Mon Sep 02, 2002 3:30 pm   

healing trigger
 
Hi,

HP[856/856] MP[960/1018] MV[212/213] >

i would like somebody helping me on how to make an automatic healing trigger if my HP < 800. using an alias h c 'full heal' self.
i'm kinda new to zmud, and would like to learn more.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Sep 02, 2002 3:43 pm   
 
Okay, a trigger and an alias. Alias first, so it can be used in the trigger. I usually don't use abbreviations in aliases, since I only have to type them once. Just cut-and-paste this into the command line. You may need to change the phrases on the last two triggers.
#AL h {#T- healing;cast 'full heal' self}
#TR {HP~[(%d)/(%d)~] MP~[(%d)/(%d)~] MV~[(%d)/(%d)~]} {#IF (%1 < 800) {h}} {healing} {nocr|prompt}
#TR {You feel much better now} {#T+ healing}
#TR {You lost your concentration} {#T+ healing}


LightBulb
Senior Member
Reply with quote
Zeo
Newbie


Joined: 02 Sep 2002
Posts: 6
Location: Malaysia

PostPosted: Tue Sep 03, 2002 8:17 am   
 
hi LightBulb,

the Trigger seems work perfectly.
but after the first heal, the trigger class was disable automatically. why?
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Tue Sep 03, 2002 3:39 pm   
 
The alias called "h" disable the healing class so that you won't heal too much. Then the two triggers
#TR {You feel much better now} {#T+ healing}
#TR {You lost your concentration} {#T+ healing}

enables the class again. My guess is that the mud you play gives a different pattern when you heal yourself then the "You feel much better now". So just change it to whatever you get from the mud and it should work just fine

Gandorf
-------------------------
Out in the night they laugh about me and my knowledge
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 03, 2002 6:16 pm   
 
What Gandorf said. On most MUDs, you'll get a new prompt with every command you send. This means you'll get a prompt when you send the heal command, BEFORE it has time to do anything, causing the trigger to go off again if it's not disabled. On some MUDs, a second attempt to cast will interrupt the first spell and you'll never be able to finish casting one. On other MUDs, the spells will stack and you'll end up using extra spells (and extra mana). Either way, it's not a good thing.

LightBulb
Senior Member
Reply with quote
Zeo
Newbie


Joined: 02 Sep 2002
Posts: 6
Location: Malaysia

PostPosted: Wed Sep 04, 2002 3:22 pm   
 
thanks all. it's fix and work fine.
;)
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