Confusion Macro
Posted: Tue Sep 20, 2011 9:17 pm
Ran into this during or game tonight, so I made a macro to roll the dice in the open:
Others can change it to add all of the HTML SPAN and DIV as I have no HTML skills to make it look pretty.
Code: Select all
[H: "<!-- Rolls for Pathfinder Confusion -->"]
[H: system = getLibProperty("System", "Lib:GlobalsSRDPF")]
[H, SWITCH(system), CODE:
case "Pathfinder":
{
[ tableName = "ConfusedPathfinder" ]
};
case "D&D3.5":
{
[H: tableName = "Confused"]
};
default:
{
[H: tableName = "Confused"]
}]
[H: dieRoll = 1d100]
[H: stringConfusion = table(tableName, dieRoll)]
[H: output = "You rolled a " + dieRoll + " and suffer: " + stringConfusion]
[R: output]