3 Attachment(s)
Individual PC XP assignment extension for d20 based rulesets
No longer needed - functionality included in FG v3.2.0
Based off discussions in this thread: https://www.fantasygrounds.com/forum...-award-as-a-DM I put together an extension that provides the ability to assign XP to individual PCs through the Party Sheet.
Versions
1.0 - Initial full release after feedback on proof-of-concept extension.
Ruleset Compatibility
Tested with:
- 5E
- 3.5E
- 4E
- PFRPG
- Castles and Crusades
Should work with any CoreRPG based ruleset that uses the Party Sheet for XP awarding and the PC database (charsheet node) stores the experience in a number field called "exp". Relies on the Party Sheet XP entry (windowclass = "ps_xp_partyentry") for the PC having a <hlink> control called "link" to allow matching to the correct PC entry in the database which stores the actual XP total for the character (exp field)..
Installation
- Download the attached "Individual PC XP Drag.ext" file and copy it to your <Fg App Data>\extensions directory.
- Start/restart FG (if it's already running) and on the load campaign screen of a compatible ruleset campaign enable the "Individual PC XP Drag" extension.
- When you load up FG it won't look any different, except you can drag/drop numbers to an individual PC's XP field in the party sheet - refer to the screenshot below.
Operation
Attachment 14999
Basically you can drag a number from anywhere and drop it on the PC's XP field in the party sheet, this can come from a XP field in an encounter (#1) or quest (#2) which can be in the party sheet or not, from a /die xxx chat entry number, from a modifier box number, etc..
The code gets the number dropped and adds it to the current XP total in the PC database, which is linked to the number shown in this field. So the XP control grabs the data, sends it to the main PC database which is then reflected back to the party sheet (as well as the XP field in the main character sheet), which is the same way that the XP "Award" process operates.
Functionality
- XP field in Party Sheet highlights and shows a + when a compatible number value is being dragged.
- Whisper sent to the owning player of the PC (if logged in) and the GM to indicate assignment of XP. Other players don't see this message. See example screenshot below.
Attachment 15002
Developer note
This extension has been developed and distributed freely for use by the Fantasy Grounds community. If you wish to use the code in this extension for anything beyond personal use please just ask. This includes modifying, updating or developing extensions with similar functionality to this (using all or portions of the code in this extension) and making them available to the public. If you're modifying for your own personal use, go nuts and mod away. But if you're going to post something publicly, please ask me. I'll more than likely be very happy you asked and give my blessing. It's just polite and respectful to do this. Thanks.