|
Atreides096 Beginner
Joined: 26 Apr 2004 Posts: 15 Location: USA
|
Posted: Tue Nov 20, 2012 6:34 am
Triggering on a Database Variable |
I've got a script with hundreds of triggers which is designed to notify me when an event occurs (an area "repops"). The repop notification is done through an alias called "repshow <area>" . So right now a standard trigger looks like this:
#TRIGGER {Area repop message} {repshow <areaname>}
I'd like to tidy this up into a single trigger using a database variable. I know you can trigger on a string list, but is there any way to trigger off of a database variable and then query the corresponding value when the trigger fires?
Thanks for the help! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Tue Nov 20, 2012 7:32 am |
i believe that a dbvariable works as as a stringlist on the keys... at least it does in CMUD.
#TR {({@dbvar})} {repshow @dbvar.%1} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|