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
Shogi
Newbie


Joined: 05 Mar 2008
Posts: 3

PostPosted: Thu Mar 27, 2008 10:08 am   

Expanding Variables in Pattern Matching portion of a Trigger
 
Is it possible to expand a variable in the Trigger Pattern Match?
Such as
Code:
#VAR partner Bob
#TRIGGER {@partner hits dog.} {assist @partner}


Would trigger on the line: Bob hits dog.

So I can setup one group of triggers and just change the variable when I change partners?

I tried this and it didn't seem to be expanding the variable. I poked around in the settings and couldn't figure out what would prevent it.
Thanks for any help.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Mar 27, 2008 10:30 am   
 
Yes, it works fine. I did this to test:

#VAR partner Bob
#TRIGGER {@partner hits dog.} {assist @partner}
#say Bob hits dog.

Something must be interfering with the trigger seeing the variable - do you have any other @partner variables, or is it in a class that's disabled or something?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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