PDA

View Full Version : Code in Effect duration without using toggle buttons?



Weslykan
April 2nd, 2026, 22:48
What are the keywords for setting duration of an effect? If I want to write something like

"fatigued 1;Duration: 1; Ends on Next Roll"

or

"sickened 1; Duration: 1; Ends at End of Current Turn"

I have an old mod I was using that doesn't have the current UI elements so I wanted to write these specifics in for myself.

Trenloe
April 2nd, 2026, 23:47
I have an old mod I was using that doesn't have the current UI elements so I wanted to write these specifics in for myself.
When you say "an old mod" do you mean an extension? If you're using an extension that isn't showing the UI elements that have been around for at least a couple of years, then it may be blocking other functionality as well - what is the extension?


What are the keywords for setting duration of an effect? If I want to write something like

"fatigued 1;Duration: 1; Ends on Next Roll"

or

"sickened 1; Duration: 1; Ends at End of Current Turn"
Assuming these are within a PC sheet (spell or activity effect action) then you have to set the effect flags via the GUI.

Weslykan
April 3rd, 2026, 00:02
https://forge.fantasygrounds.com/shop/items/84/view
I'm using this and I know it's not for PF2E. I went in and changed it from PFRPG to PFRPG2 and it actually does function properly. It applies the effect on hit, but it lacks the "Targeting/Expenditure" section properly. This is my first time trying to work with extensions for this game so i wanted to change as little as possible so as not to break it myself, so I was seeking to use the actual in game duration words for the effects. like "expend on next turn" etc

Trenloe
April 3rd, 2026, 00:43
There aren't any in game word parsing for effects like this in the PF2 ruleset. You'll need to modify the extension to allow it to work properly with PF2.

Weslykan
April 3rd, 2026, 00:45
Where can I go to find resources to teach me how to do this?

Trenloe
April 3rd, 2026, 01:48
Start here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644285/Developer+Guide

And look at the XML for the effects window in the PFRPG2 ruleset. Have a look at the "power_action_editor_effect" windowclass in cmpaign\record_spell_roll.xml in the PFRPG2.pak file.

Note: this might be changing in the next few weeks due to the large CoreRPG effects updating currently in the test channel. You may want to wait until that goes live before doing this. In the meantime you can use the approach I mentioned in your other recent thread - setup effect actions in either activities or dummy spells.

Weslykan
April 3rd, 2026, 02:25
Thank you very much I'll hold off for a bit. I completely understand that your solution is the correct one if I was trying to just use it for actual in-game status effects... But what I'm actually trying to do is use aura extensions visualizer that allow me to automatically apply a visual effect when someone gains an aura as a shortcut to applying spell /attack animations to the game �� so having it not automated would be a pain for martial classes. Your solution works perfectly well for the spell casters because I can just have the thing that attaches the animation to them apply whenever they hit the "apply all effects button" and then I have the visual effect go away at the end of the turn.