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


Joined: 19 May 2002
Posts: 15

PostPosted: Wed Oct 02, 2002 10:20 am   

Appending text to a variable
 
Sorry for the lame post, but its late and my brain stopped fuctioning after i wrote this alias...so heres the finishing touch.
I have a variable @spell that contains a spell name(ie. armor) i have a check to see if it fails, how can i append the word failed to the variable so it would become:
@spell = armor - failed
bear in mind i can't use that because @spell can be any number of spells, i just want to be able to append - failed to whatever is currently in the variable.
Again sorry for the lame question.
Thanks
Double0fro
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Oct 02, 2002 12:38 pm   
 
#VAR spell %concat(@spell, " - failed")

Kjata
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