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
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Wed Feb 05, 2003 12:36 am   

checking a list
 
Ok, I want to make a trigger where if a certain name is stored on a variable list i have, the trigger will execute, otherwise, nothing happens, how can i do that
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Feb 05, 2003 1:01 am   
 
#TRIGGER {{@list}} {commands}

Kjata
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Wed Feb 05, 2003 1:43 am   
 
Ok here's an example... #TRIGGER {(%w) nods at you.} {(if %1 is in the list) then do action}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Feb 05, 2003 3:22 am   
 
quote:

Ok here's an example... #TRIGGER {(%w) nods at you.} {(if %1 is in the list) then do action}



#if (%ismember(%1,@list)) {do true stuff here} {do false stuff, if any}

li'l shmoe of Dragon's Gate MUD
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Feb 05, 2003 4:00 am   
 
Or, like Kjata suggested,
#TR {{@list} nods at you.} {do action}

LightBulb
Advanced Member
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Wed Feb 05, 2003 5:50 am   
 
ahh, but MattLofton's offers more possibility...
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