Topic 1:
I want to use a macro to create another macro.
The application:
I want the player to be able to click "StowWeapon" and have it create a set of "EquipWeap" buttons (numbered 1-5), issue a report to the player, and delete the "StowWeapon" button itself.
My attempts:
I tried the example on the wiki, and it worked as written (a rare event indeed!). However, when I tried replacing the "this is a test" text with the macro command that I want EquipWeap1 to do, it gives me an error. I think it's probably because of the quotation marks, but I don't know how to fix it. Googling suggests perhaps encode and decode, but I don't know how to use them.
In other words, this works:
Code: Select all
[h: createMacro("EquipWeap1", "this is a test",
"autoExecute=true;group=Weapons") ]
Code: Select all
[h: createMacro("EquipWeap1", "[macro("EquipWeap1@Lib:Weapons"): ""]",
"autoExecute=true;group=Weapons") ]