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
stellar-everwar
Newbie


Joined: 24 Nov 2006
Posts: 3

PostPosted: Sat Nov 25, 2006 6:06 pm   

variable and add...
 
What is the syntax, to for instance, add then use the variable...

Example:

Kill 1.enemy
#add variable 1
kill @variable.enemy

Its not working in that format, wondering what I am missing.

Thank you in advance,
Stellar
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Nov 25, 2006 7:31 pm   
 
kill @{variable}.enemy
or
kill %concat(@variable,".enemy")

The way you have it written it tries to interpret variable as a record and attempts to retrieve the value of the 'enemy' key.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
stellar-everwar
Newbie


Joined: 24 Nov 2006
Posts: 3

PostPosted: Sat Nov 25, 2006 8:02 pm   
 
Perfect, greatly appreciated.
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