|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: 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
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Feb 05, 2003 1:01 am |
#TRIGGER {{@list}} {commands}
Kjata |
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: 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}
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Feb 05, 2003 4:00 am |
Or, like Kjata suggested,
#TR {{@list} nods at you.} {do action}
LightBulb
Advanced Member |
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Wed Feb 05, 2003 5:50 am |
ahh, but MattLofton's offers more possibility...
|
|
|
|
|
|