PDA

View Full Version : Effects and conditions



Xarxus
April 25th, 2023, 15:47
The time has come to study (well) the effects and conditions to be able to insert/program them correctly in my ruleset.

Where do I start? For example, I notice that if I open the effects window I can't find the duration field ("RND", etc.)
which I see on the Tracking Conditions and Effects (wiki) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996641040/Tracking+Conditions+and+Effects).

damned
April 25th, 2023, 15:52
Is Duration only in the ct_effects windowclass?

Trenloe
April 25th, 2023, 16:24
The time has come to study (well) the effects and conditions to be able to insert/program them correctly in my ruleset.

Where do I start? For example, I notice that if I open the effects window I can't find the duration field ("RND", etc.)
which I see on the Tracking Conditions and Effects (wiki) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996641040/Tracking+Conditions+and+Effects).
That screenshot is from the 5E ruleset.

CoreRPG is for generic ruleset and counts duration in rounds; the number of rounds that take up a minute can change from one RPG system to another. Hence why CoreRPG only counts duration in rounds.

Xarxus
April 25th, 2023, 16:26
Ok (and ty all), but where should I start to study?
I'm getting lost in the code

Trenloe
April 25th, 2023, 16:30
For an example, have a look in the 5E scripts\manager_effect_5E.lua file. Additional effect variables are registered with the base CoreRPG EffectManager (scripts\manager_effect.lua in CoreRPG). Then there are some custom function registrations that are used to override the CoreRPG functionality in CoreRPG.

You'll need to go through the base CoreRPG EffectManager code and see where the 5E overrides kick in - and what they do.