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


Joined: 26 Apr 2004
Posts: 15
Location: USA

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


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

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