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
PrestoPimp
Apprentice


Joined: 18 Sep 2001
Posts: 175
Location: USA

PostPosted: Wed Sep 17, 2003 7:39 pm   

Combining text with a variable in another variable
 
How do i combine text into a variable if i have a trigger pattern like this:

(%w) gives you a ball of light.

then i want to do something like

#ADD %1+balloflight 1

How would i go about doing that?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 17, 2003 10:35 pm   
 
Don't use arithmetic symbols in the variable name. Underscore is probably the best choice as a combining symbol.

Pattern:
(%w) gives you a ball of light.
Value:
#ADD %1_balloflight 1
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