RPTools.net

Discussion and Support

Skip to content

It is currently Mon May 29, 2017 12:02 pm 




Forum rules


Discussion regarding lmarkus001's framework only. Other posts deleted without notice! :)



Reply to topic  [ 4 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Confusion Macro
PostPosted: Tue Sep 20, 2011 8:17 pm 
Ran into this during or game tonight, so I made a macro to roll the dice in the open:

Code:
[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.

_________________
Image
Time-Zone information UTC -5


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1864
Location: Layfayette Hill, PA
 Post subject: Re: Confusion Macro
PostPosted: Tue Sep 20, 2011 8:34 pm 
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...

_________________
D&D3.5 / Pathfinder Framework


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: Confusion Macro
PostPosted: Tue Sep 20, 2011 8:48 pm 
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.

_________________
Image
Time-Zone information UTC -5


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1864
Location: Layfayette Hill, PA
 Post subject: Re: Confusion Macro
PostPosted: Tue Sep 20, 2011 9:12 pm 
Cheap and dirty output. This will put the text to chat and the dieRoll in an ugly tooltip:

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

_________________
D&D3.5 / Pathfinder Framework


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 4 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman