|
fienna Newbie
Joined: 09 Sep 2007 Posts: 3
|
Posted: Mon Sep 10, 2007 3:21 am
trigger help with if statement |
trigger: You (%w) %* with (%x) *[!]
contents:
#if (%1 <> "bash" and %1 <> "smash") {
#ad total_spell_hits 1
}{
#ad total_other_hits 1
}
now, i'll get a normal match, such as: "You brimstone a dark elf with ANNIHILATING intensity!"
the trigger fires great, however, it adds one to total_other_hits instead of total_spell_hits
what gives?
i tried reversing it:
#if (%1 == "bash" or %1 == "smash") {
#ad total_other_hits 1
}{
#ad total_spell_hits 1
}
but then it just doesnt add at all.
any ideas?
} |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Sep 10, 2007 4:34 am |
This worked fine for me. I had to add space between the curly braces.
Code: |
#if (%1 <> "bash" and %1 <> "smash") {#ad total_spell_hits 1} {#ad total_other_hits 1} |
|
|
_________________ Asati di tempari! |
|
|
|
|
|