MapTool Macros

Useful Macros for Maptool

NOTE: Obsidian Portal formats quotation marks strange, so when you paste these into your macros make sure all quote are the true " an nothing funny.

Attack that detects natural 20 criticals:

example: Longsword attack +10 to attack, +5 damage, 1d8 damage

[h:d20Roll=1d20]
[h:AttackRoll=d20Roll+10]
[h:DamageRoll=1d8+5]
Longsword attack:
{IF(d20Roll==20, “CRITICAL HIT! 13 damage”, AttackRoll + " vs. AC, " + DamageRoll + " damage.")}

Damage/Healing macro
Requires HP and MaxHP entries in your token properties.

[h:status = input(
“hpChange|0|Number of Hit Points”,
“dmgOrHealing|Damage,Healing|Is the character taking damage or being healed?|RADIO|SELECT=0”)]
[h:abort(status)]

[if(dmgOrHealing == 0),CODE:
{
[h:HP = HP – hpChange]
[h:bar.Health = HP / MaxHP]
[r:token.name] loses [r:hpChange] hit points.
};
{
[h:diff = MaxHP – HP]
[h:HP = min(HP+hpChange, MaxHP)]
[h:bar.Health = HP / MaxHP]
[r:token.name] is healed and gains [r:min(diff,hpChange)] hit points.
};]

MapTool Macros

Diapha: Blood & Sand (& Pie) snowlion9