1 Attachment(s)
PF Player Effect Removal Extension
This extension is compatible with FG 3.3.3.
PF Player Effect Removal Extension
Version: 2.0
Rulesets: 3.5E/PFRPG
With help from: Trenloe
Description: Via the use of a single effect tag REMOVE: this extension allows players to remove effects that have been applied by them to either their own PC or other creatures (friendly, neutral or hostile). If the player has applied the effect, they can remove that effect through the use of this extension. Included in this extension is the STACK: and MULTI: tags to allow multiples of the same effect to be applied for various purposes.
v2.0 Update Notes
- This extension uses a new design to minimize conflicts with other extensions and increase its resilience against FG updates.
- The STACK tag has been added to offer an easy way to count things in the CT.
- The MULTI tag has been added to offer a way to stack identical modifier effects.
******************
Modification Specifics
******************
Modified:
campaign/scripts/spell_action_mini.lua
-- Remove Effect Tag --
How to Use
To remove an effect from yourself or another creature in the combat tracker, simply make an effect with the tag 'REMOVE: ' followed by the full name of the effect to be removed. For instance, to remove the 'Sneak Attack; DMG: 1d6' effect, you would make an effect called 'REMOVE: Sneak Attack; DMG: 1d6'. Then you just apply the removal effect to the target. A special button represents the removal effect and will appear once you have typed REMOVE. The effect is case sensitive so make sure the REMOVE: entry matches the effect application entry exactly - the best way to do this is to copy the effect line and paste into the REMOVE: entry.
NOTE: The creature with the effect must be targeted to remove it. If you are using effects with a target of "SELF" then the removal effect must also be set to "SELF".
How Does It Work
The removal tag searches the target for an effect with the name indicated after the 'REMOVE:' and removes it.
The following screenshots show examples of how this is setup in the charsheet Actions tab and how the chat display shows the removal of the effect.
https://www.fantasygrounds.com/forum...7&d=1469416632
https://www.fantasygrounds.com/forum...9&d=1469416717
-- Stack Tag --
How to Use
For effects that you need to keep a count of, use the 'STACK:' tag. Applying the effect will add one to the stack rather than adding a new effect. This tag works with the REMOVE tag so you can remove one from the stack by using the 'REMOVE: STACK:' tag. See the example below for a stacking count of mirror images.
https://www.fantasygrounds.com/forum...5&d=1394739166
How Does It Work
When a stacking effect is sent to FG it looks for a preexisting stack to add it to. If there is none, it creates a stack of 1 effect. When a remove stack effect is sent to FG it looks for a stack of the indicated effect. If it finds one, the stack is decreased by 1 or the effect is removed if only one remained.
-- Multi Tag --
How to Use
For effects that you need to apply multiple times, use the 'MULTI:' tag. Applying the effect will add the effect preceded by a number and semicolon. (This causes FG to view it as a unique effect.) The MULTI tag is best used for effects that expend as soon as they are rolled, as the effects cannot be removed with the REMOVE tag.
https://www.fantasygrounds.com/forum...1&d=1506131522
How Does It Work
When a multi effect is sent to FG it looks for a preexisting multi effect. If there is none, it creates an effect with '1;'. If it finds a multi effect, it adds a new effect with a number one higher.