|
Wackyfuitoo Novice
Joined: 11 Nov 2000 Posts: 46 Location: USA
|
Posted: Tue Jan 06, 2004 3:09 am
auto-heal on prompt. i've been gone a while |
I haven't played a MUD in over a year, and started reprogramming my triggers again. My auto-heal is on a 1-action delay, and I just can't figure it out.
It's supposed to trigger off the prompt, which looks like this:
<Spellfire 423hp 562mana 400mv Buf:awful Vic:good >
The trigger is checkmarked for Prompt, and unchecked for New-line.
However, it still waits for a carriage return / second prompt to fire off my heal.
The trigger text is this:
^<(%w) (%d)hp (%d)mana (%d)mv Buf:(%w) Vic:(%w) >
The reaction is this:
#IF (@TankValue >= @MiraValue) {
@MiraAttempt = 1
cast 'miracle' @Tank
#T- CastMira
}
Outside of the CastMira class is a similar prompt trigger (not new-line) which adjusts @TankValue and @MiraValue.
Here's what I expect to happen:
<Spellfire 423hp 562mana 400mv Buf:awful Vic:good > cast 'miracle' Yaser
Xarn pummels a large Ettin!
Ok.
<Spellfire 423hp 462mana 400mv Buf:full Vic:good >
But instead, I get this:
<Spellfire 423hp 562mana 400mv Buf:awful Vic:good >
Xarn pummels a large Ettin!
<Spellfire 423hp 562mana 400mv Buf:awful Vic:good > cast 'miracle' Yaser
Ok.
The "Ok." is MUD's message saying I healed the tank. The italics are the trigger response.
Again, I haven't programmed zMUD in well over a year, so maybe I'm missing something outside the obvious. I apologize if my code is confusing, since I've been out of the swing for a while, also. I'm also using v6.66, but I don't think this is a beta related issue. |
|
|
|
Serentus Apprentice
Joined: 28 Sep 2001 Posts: 103 Location: USA
|
Posted: Tue Jan 06, 2004 7:50 am |
Without knowing what the 'similar prompt trigger'does, it might be a trigger firing order issue.
Your trigger to heal (i'm guessing is in the CastMira class) is before the one that sets the values (and is the one that enables the CastMira class). So what's happening is when you recieve a prompt the CastMira class is disabled it isn't checked, and then the one that sets the values is checked, it macthes it sets. Then the next time you get a prompt the CastMira class is enabled so the heal trigger matches and heals.
To check this open the setting editor to view the triggers and select all classes, then in the view menu select sort by none. your trigger for setting variables and eneableing the class should be higher on the list than the one to heal. If it's not you can drag it above the healing trigger and it should work.
If this isn't it try posting both triggers and any that turn on CastMira class. |
|
|
|
Wackyfuitoo Novice
Joined: 11 Nov 2000 Posts: 46 Location: USA
|
Posted: Tue Jan 06, 2004 8:57 am |
It was firing order. The healing trigger would fire, not have the associated value set properly yet, then the value-setting trigger would fire afterwards. I just copy and pasted the value-setting into the healing trigger to fix it.
|
|
|
|
|
|
|
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
|
|