|
stellar-everwar Newbie
Joined: 24 Nov 2006 Posts: 3
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
stellar-everwar Newbie
Joined: 24 Nov 2006 Posts: 3
|
Posted: Sat Nov 25, 2006 8:02 pm |
Perfect, greatly appreciated.
|
|
|
|
|
|