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


Joined: 09 Sep 2007
Posts: 3

PostPosted: 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?
}
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
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