Page 1 of 1

Confusion Macro

Posted: Tue Sep 20, 2011 9:17 pm
by neofax
Ran into this during or game tonight, so I made a macro to roll the dice in the open:

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]
Others can change it to add all of the HTML SPAN and DIV as I have no HTML skills to make it look pretty.

Re: Confusion Macro

Posted: Tue Sep 20, 2011 9:34 pm
by lmarkus001
Alternately, the player can just click on the Confused table and it will generate a result to chat...

Ah I see, this exposes what was rolled.

If you want to support role-playing, change the output to [R,S,G: output ] that way the other players can't metagame it...

Re: Confusion Macro

Posted: Tue Sep 20, 2011 9:48 pm
by neofax
lmarkus001 wrote:Alternately, the player can just click on the Confused table and it will generate a result to chat...

Ah I see, this exposes what was rolled.

If you want to support role-playing, change the output to [R,S,G: output ] that way the other players can't metagame it...
True and will update the macro as I want to apply quotes around the confusion text and make it red like when rolling from the table.

Re: Confusion Macro

Posted: Tue Sep 20, 2011 10:12 pm
by lmarkus001
Cheap and dirty output. This will put the text to chat and the dieRoll in an ugly tooltip:

Code: Select all

[R,S,G,T(table(tableName, dieRoll) ): dieroll]