|
reavor Novice
Joined: 31 Aug 2001 Posts: 48 Location: USA
|
Posted: Sun Apr 25, 2004 10:09 pm
Trigger not firing.... can anyone see an error? |
When PK is enabled, I want to chase them when they flee. I keep the Hunt class off, and when i turn on the PK class it should chase mobs/players when they flee.
Here is a cut/paste of the actual text that shows when they flee.
Butterfly panics and attempts to flee from battle!
Butterfly leaves north.
Here is my triggers.... any ideas why it isn't working. In the test it shows pattern matches, and puts %1 : butterfly, but it doesn't actually fire when it happens in the game. I have tried and tried to figure out what I'm doing wrong. I want it to turn on the Hunt class trigger, and target the mob, then when the next line hits -- Butterfly leaves north, I want it to echo tracking @target, and then go in that direction and kill the target. Can anyone see what I'm doing wrong??
#CLASS {PK}
#TRIGGER {^(*) panics and attempts to flee from battle!} {
#T+ Hunt
#var target %1
} "" {nocr}
#CLASS 0
#CLASS {Hunt} {disable}
#TRIGGER {^(*) leaves (%w).} {
#echo Tracking @target
#var huntdir %2
@huntdir
kill @target
#T- Hunt
}
#CLASS 0
I'm using Zmud 7.05 on Win XP home edition. 2.6 ghz intel celeron with 256 sdram (incase this matters.)
Thanks for your help in advance,
Reavor
Thanks in advance for your help. |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Sun Apr 25, 2004 10:26 pm |
I think the {nocr} option is your problem just get rid of it.
Cheers, Jesse |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Mon Apr 26, 2004 10:39 am |
The great thing about zmud, is that it has a thing called CONDITIONAL triggers. It would simplify your hunt system:
#class {PK}
#trigger {^(*) panics and attempts to flee from battle!} {#var target "%1"}
#con {@Target leaves (%w)} {#echo Tracking @target
#var huntdir %1
@huntdir
kill @target} {within|param=1}
#class 0 |
|
|
|
|
|
|
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
|
|