|
kent Beginner
Joined: 03 Apr 2006 Posts: 29
|
Posted: Thu Jun 06, 2013 9:45 pm
trying to get the trigger class figured out |
Hello,
I have worked on this class for a few days, and I am confused about the %item() and %ismember(). What this trigger does when fired it is supposed to select from a list of monsters inside my variable InvMonster and once it finds the correct monster then it drops into the loop and casts the spell on the monster. What I get right now when it fires is this
Cast the spell on whom?
what is wrong here and how to fix it?
#CLASS {test}
#TRIGGER {You sense a hidden life form in the area.} {
#var InvMonster {"rogue|Highway"}
#if (%ismember( %1, @InvMonster))
#loo 1,5 {
cib %item( %1 , %ismember( @InvMonster))
#wait 4000
}
}
#CLASS 0 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Jun 06, 2013 10:19 pm |
based on your code, the issue is a missing set of {} for your #if command.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
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
|
|