Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jan 19, 2008 5:16 am   

[2.18] Database variables in triggers
 
In zMUD, I could use a database variable within a trigger pattern, and it'd treat it just like it was multiple variables. For instance, my trigger pattern would contain:

#TRIGGER {^~(%d~) {@database.key}$} {do stuff here}

However, in CMUD, I find that it doesn't work that way anymore. I wonder, is this intentional, or another bug? I could just put what I want in a variable (it's really only matching one name) but I try to reduce clutter in my scripts/packages. I'd love for that functionality to work again.

Charneus
Reply with quote
dogotemn
Beginner


Joined: 05 Jul 2007
Posts: 21

PostPosted: Sun Jan 20, 2008 10:09 pm   
 
try changing "{@database.key}" to "@(database.key)" and see if it works. and if not that, give "(@{database.key})" a swing.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jan 20, 2008 10:40 pm   
 
Heh... {@{database.key}} did the trick nicely. Thanks. :)

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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