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


Joined: 24 Oct 2005
Posts: 3

PostPosted: Mon Oct 24, 2005 2:24 pm   

Trigger help
 
So far i have a trigger based on my HP that tell the cleric screen to full heal me when ever my hp is >46% it looks like

#if @autoheal=1 {#if @HPper<46 {
#say You're Getting Healed
:cleric:stand
:cleric:c 'full heal' warrior
#var autoheal 0
}}

and i also have a trigger that resets #var autoheal back to 1 when i recieve that heal. i would like a trigger that either recasts the full heal again when it recieves this message "Your armor causes your spell to fizzle out!" or a trigger that will recast the last spell tried when i get that message. Any way to do this?
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Mon Oct 24, 2005 2:42 pm   
 
You could do...

#TRIGGER {^Your armor causes your spell to fizzle out!} {:cleric:c 'full heal' warrior}

Or

#TRIGGER {^Your armor causes your spell to fizzle out!} {%lastcom}
_________________

No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Reply with quote
Cisne
Newbie


Joined: 24 Oct 2005
Posts: 3

PostPosted: Mon Oct 24, 2005 5:37 pm   
 
Insomniac wrote:
You could do...

#TRIGGER {^Your armor causes your spell to fizzle out!} {:cleric:c 'full heal' warrior}

Or

#TRIGGER {^Your armor causes your spell to fizzle out!} {%lastcom}


I thought about doing the first one, but that would cause it to do a full heal evertime i got the message from anyspell

trying out the second one to see what it might do.
Reply with quote
Cisne
Newbie


Joined: 24 Oct 2005
Posts: 3

PostPosted: Mon Oct 24, 2005 7:04 pm   
 
the second one didn't seem to work either it would put out a long code. is there a command to just enter that last command that was put to that screen?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Oct 24, 2005 7:29 pm   
 
#HELP #COND

First off you can get rid of the nested #IF

#TRIGGER {Hp Trigger here} {
#IF (@autoheal=1 AND @HPper<46) {
#SAY You're Getting Healed
:cleric:stand
:cleric:c 'full heal' warrior
#VAR autoheal 0
}
#COND {^Your armor causes your spell to fizzle out!} {
#SAY Heal Failed, Recasting
:cleric: c 'full heal' warrior
} {within|param=5}

//Param field might need to be adjusted depending on the number of lines.
_________________
Zmud Support Library
Zmud Knowledge Base
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