I have a Macro with name "Bite".
When i run it, there is a variable [h: AttackName="Punch"]
So, when the variable is different, the macro should be renamed in thenew name of the variable "AttackName".
But i dont know, how to to it?
i tried:
Code: Select all
[h: AttackName="Punch"]
[h: OldMacroName=getMacroName()]
[h, if (OldMacroName!=AttackName),CODE:
{
h: setMacroProps("label",AttackName)]
};
{}]
i used http://lmwcs.com/rptools/wiki/setMacroProps but didnt gat any idea how to make it work
Maptool Version: 1.6.1
Thanks for the help
...DX