|
Cisne Newbie
Joined: 24 Oct 2005 Posts: 3
|
Posted: 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? |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: 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. |
|
|
|
Cisne Newbie
Joined: 24 Oct 2005 Posts: 3
|
Posted: 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. |
|
|
|
Cisne Newbie
Joined: 24 Oct 2005 Posts: 3
|
Posted: 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?
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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. |
|
|
|
|
|