PDA

View Full Version : Slotting Party Rolls



Nickademus
October 16th, 2014, 00:30
In the 3.5E ruleset (and anything else that has party-wide rolls from the party sheet), how hard would it be to allow the hotbar to hold the action to roll a specific skill/ability/save/attack for the whole party. Currently a drop-down menu sets what is being rolled and a die button initiates the roll, but the die button can't be drug to the hotbar.

Personally, I'd love to slot Perception (for Pathfinder) and some of the Knowledges to the hotbar while GMing.

JohnD
October 16th, 2014, 01:58
Great idea.

Nickademus
October 21st, 2014, 22:05
That hard, eh? Nevermind then.

Nylanfs
October 22nd, 2014, 00:09
You could take the conversation to the Workshop and see if it could be done in an extension.

Nickademus
October 22nd, 2014, 04:43
I don't do extensions anymore.

Trenloe
October 22nd, 2014, 05:06
The first issue here is that the button that rolls the skills is simply a button that kicks off the action function in ps\scripts\ps_roll_skill.lua in the 3.5E ruleset. The button doesn't have any drag data associated with it, so it can't be dragged to the hotkey bar.

Then, if the dice roll button was made to be draggable (like the Combat Tracker Next Actor button has been made recently - see the template button_ct_nextactor in CoreRPG ct\template.xml) it would have to store the skill name in the dragdata (not much of an issue here), and the action function in ps_roll_skill.lua would have to be modified to take an optional skill name as an input parameter and use this if present.

Then the onHotKey event handler would have to be written with a specific drag type to trigger an action specific to the skill roll. See onHotKey in the 3.5E ct\scripts\ct.lua script for the CT next actor hot key handler.

Shouldn't be too hard. Off you go... ;)

Trenloe
October 22nd, 2014, 06:14
EDIT: Extension moved to this thread: https://www.fantasygrounds.com/forums/showthread.php?22381-HotKey-Party-Sheet-Skill-Roll-Extension

I quickly threw this together.

Extension name: Party Sheet Skill Roll Hotkey
Rulesets: 3.5e and PFRPG version 3.0.8.
Extension Version: 0.1

Description - allows the dragging of Party Sheet Skill Rolls to the hotkey bar - includes the skill name and the selected DC at drag. Do not change the name that is auto populated, this is used to make the correct roll.

Gotchas - previously created hotkeys won't work until the GM has opened the Party Sheet Skill tab at lease once after starting the campaign. The Party Sheet doesn't need to be open, but it does need to have been opened once to the Skills tab (to initiate the code).

damned
October 22nd, 2014, 12:58
You are on a roll good sir.

Trenloe
October 22nd, 2014, 16:37
Made a thread specific to this extension here: https://www.fantasygrounds.com/forums/showthread.php?22381-HotKey-Party-Sheet-Skill-Roll-Extension

Nickademus
October 22nd, 2014, 18:10
I'm far too good to you!

You're right. You are too good to me. I appreciate it though. I'm sure I'm not the only GM that has wanted this.