gulca
Joined: 11 May 2011 Posts: 5
|
Posted: Fri Oct 14, 2011 11:55 am Post subject: creating macro off variable list |
|
|
I have problem trying to do the following.
I pre-define a list of variables
| Code: | | #list dying create $dying1 $dying2 $dying3 |
I then define a variable index to keep track
Now I want to set macros to dying individuals, and let say the current individual is in variable name, which I set it to $dying1
| Code: | #var name Bob
#var $dying[$dying_index] $name
|
For the macro, I try to set it this way but it doesn't work. I pre-define a set of macro keys I want to use, note it will be F1 F3 F4 with their code equiv
| Code: |
#list function_keys create \e0R \e0S \e[15~
#macro $function_keys[$dying_index] {cast 'heal' $dying[$dying_index]}
|
The thing is #showme on $dying1 gives me Bob, and $dying[$dying_index] gives me $dying1 but the macro doesn't work.
How do I make it work?
Basically I want the macro F1 in this case to have the command
cast 'heal' $dying1
Thanks. Maybe there's an easier way to do this. |
|