ID:272869
 
I was trying to think up a good way to make it so that a player can change macro's featured in the interface at and during runtime. I thought the best way would be to make the macro's return a proc which checks what the player has assigned to that button and then use that verb. Any tips on a different, or how I can go about achieving what I want to do here?
Demon_F0rce wrote:
I thought the best way would be to make the macro's return a <s>proc</s> verb which checks what the player has assigned to that button and then uses that verb.

Yes, you just need a verb that calls another verb depending on what the player has chosen for that key. You could even mix call() in there to make it a little easier, though it's not necessary.

Any tips on a different, or how I can go about achieving what I want to do here?

The only other way is to utilize the ability to change interface macros at runtime. With this you can edit the actual macro itself, e.g. to activate a different command/verb. It's done by making the macros through the interface, giving them IDs, and using those in winset().
In response to Kaioken
I see... Thank you for your help.