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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Yodous
Apprentice


Joined: 23 Jun 2004
Posts: 105
Location: Poland

PostPosted: Sat Nov 14, 2009 1:17 pm   

[3.12] How to use variables in #TRIGGER
 
Hi there!
How to put some values into pattern using #TRI? For example:
Code:
#4 {
  #TR {tekst%i} {#SA %i}
}

Using %eval() or local variables doesn't work becouse there isn't any in place expand. So how can i achieve this?

Bez regards
Yodous
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Nov 14, 2009 3:03 pm   
 
If you're going to do it that way, you'll need to set it up like this:

Code:
#4 {#EXEC %concat("#TR {tekst",%i,"} {#SA ",%i,"}")}


Charneus
Reply with quote
Yodous
Apprentice


Joined: 23 Jun 2004
Posts: 105
Location: Poland

PostPosted: Sat Nov 14, 2009 4:00 pm   
 
Mhm, thx
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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