Updating Macro Buttons Using Macros: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Dynamically Updating a Token's Macro Buttons== Some times you want to modify what a Token:token's macro button from within a macro, this could be to visually represent a spell o...)
 
Line 2: Line 2:
Some times you want to modify what a [[Token:token|token]]'s [[macro button]] from within a macro, this could be to visually represent a spell or power as having been used or even indicating that it is available for use.  
Some times you want to modify what a [[Token:token|token]]'s [[macro button]] from within a macro, this could be to visually represent a spell or power as having been used or even indicating that it is available for use.  


A quick note on some of these examples, as of 1.3b48 it is only possible to have 2 levels deep of code: blocks, so some of the examples build [[Marcos:string list|string list]]s in a first loop and then loop over them again to avoid running into the problem. Also as of 1.3b48 there is no way to get the index of the button that has been pressed, this will be addressed in the not too distant future.
A quick note on some of these examples, as of 1.3b48 it is only possible to have 2 levels deep of code: blocks, so some of the examples do things a little differently than you would if you could have multiple levels of code: blocks to avoid running into the problem. Also as of 1.3b48 there is no way to get the index of the button that has been pressed, this will be addressed in the not too distant future.


This tutorial is broken into several parts, although DnD4e is used to explain the concepts they are just as valid for any other system where you want to track if a skill has already been used or not.
This tutorial is broken into several parts, although DnD4e is used to explain the concepts they are just as valid for any other system where you want to track if a skill has already been used or not.

Revision as of 11:01, 22 December 2008

Dynamically Updating a Token's Macro Buttons

Some times you want to modify what a token's macro button from within a macro, this could be to visually represent a spell or power as having been used or even indicating that it is available for use.

A quick note on some of these examples, as of 1.3b48 it is only possible to have 2 levels deep of code: blocks, so some of the examples do things a little differently than you would if you could have multiple levels of code: blocks to avoid running into the problem. Also as of 1.3b48 there is no way to get the index of the button that has been pressed, this will be addressed in the not too distant future.

This tutorial is broken into several parts, although DnD4e is used to explain the concepts they are just as valid for any other system where you want to track if a skill has already been used or not.