Thanks to patoace target.campaign I got the idea of creating token macros fully automatic, so no buttons to push, just drag a token on the map, deselect it, then select it again (click on it) and all the macro buttons 'magically' appear.
I've embedded the function in my current DH framework. The trick is in the property: Initiate and in the macro Initiate on the DH:Lib. These two are the only things you need to make this work.
The howto:
Add:
*Initiate:[macro("Initiate@lib:DH"):""]
to your token properties ("lib:DH" needs to be replaced with the name of your lib token)
and add the following macro to your lib token
Initiate
Code: Select all
<!--requires macros to be user defined on lib token-->
[h:createMacro("Use Skill","[r:UseSkill()]", "group=Manage Character; color=default; fontColor=black; sortBy=3; playerEditable=0")]
<!--Alternative: doesnt require them to be user defined:-->
[h:createMacro("Show Char adjustments","[macro("Edit tmpStats@Lib:DH"):""]", "group=Manage Character; color=default; fontColor=black; sortBy=5; playerEditable=0")]
repeat for other macros
[r:setProperty("Initiate", "")]