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]