Macros

This lists macros that may be useful for the table.

Initiative Roll
For those wondering how to do an Initiative Rolls, there are two forms, an inline dice roll that places the number in yellow boxes and a full roll that shows the dice and the modifications.

We setup the macro the same way, we will use an example of a +5 Bonus for our character.

Inline Example
If your Initiative Bonus is +5, we use the following:

 @{Selected|Character_Name} Initiative Roll: 5} + (0.01 * ?{Initiative Bonus?}) &{tracker}  

Dice Roll
'' @{Selected|Character_Name} Initiative Roll: /roll 1d20 + ?{Initiative Bonus?|5} + (0.01 * ?{Initiative Bonus?}) &{tracker} ''

It's important to include a new line starting with /roll. Roll20 doesn't allow text to be presented on the same line when using /roll, at either end, it will not display in chat.

The maths however is excatly the same.

Mathmatic Review
For those interested in what all this means, the following should help with understanding the call. It uses the Inline Example as the basis, but is nearly applicable to Dice Roll's.


 * @{Selected|Character_Name}:This prevents us rolling unless we have a token we control selected when clicked. If this isn't true, it produces an error.
 * Initiative Roll:Because this is an Inline Roll, it will display this text.
 * [[:Starts the Inline Roll mathmatical facts.
 * 1d20:The number of and type of dice Roll20 will roll.
 * + ?{Initiative Bonus?|5}:Ask us for a Initiative Bonus, but provides our default bonus of 5 by default. If we got a temparary bonus from another player, we can change this number here.
 * + (0.01 * ?{Initiative Bonus?}):We take our bonus, multiply that bonus by 0.01 (to get 0.05) and add this to the Dice Roll. If our Initiative Bonus was changed above, it is automatically changed for us in this step.
 * &{tracker}:If the Turn Order is up, this allows us to add our tokens name to the Turn Order, or update it, if its already there.
 * ]]:Closes the Inline Roll.

We multiply our Intiative Bonus by 0.01 because RAW says on an Intiative Ties with another entity, the tie is seperated by our Intiative Bonus. This adds our bonus to our Roll Total easily and lets that tie information be included in a way that allows sorting to still be correct. In the event of a double tie, its rerolled by both entities.