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
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

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