Log in

View Full Version : Extension for Entropic Shield



Frectorius
September 11th, 2025, 11:20
Hallo All :D

I'm new to the FGU World and especially to extension!

I've seen that my Player has the spell "Entropic Shield" which gives an 20% Miss-Chance for Ranged Attacks. As far as i have seen, this is not automatically rolled. So i tried to create an extension for this case. Later i want to create more to the extension for more automation cases that i find in my campaign.

My Idea - with help of ChatGPT - was to create an Effect on the Character:


Entropic Shield; Ranged Attacks have 20% miss chance; REPLACE

and have an extension to check for that Effect:

-- Entropic Shield Effekt
if rTarget and rRoll.sRange == "R" then
if EffectManager35E.hasEffectCondition(rTarget, "Entropic Shield") then
bEffects = true
nAddMod = nAddMod -- keine Modifikation an Angriffswert
rRoll.nMissChance = 20
table.insert(aAddDesc, "[ENTROPIC SHIELD: MISS CHANCE 20%]")
end
end

This kind of kills all attack rolls. I guess that the Manager are called wrongly.

Sadly i havent found much help for this specific case. Is there a tutorial to create own effects like this?

One Thing i planed for the future is to create a special attack or Spell to "turn undead" for the cleric, but this is something for the future.

Moon Wizard
September 11th, 2025, 18:19
I'm assuming we're talking about 3.5E/Pathfinder 1E here. Since entropic shield already mimics concealment; you can just use the concealment effect without needing an extension.

Effect Text


Entropic Shield; CONC


Regards,
JPG

Frectorius
September 12th, 2025, 10:51
Thanks for the fast reply!

This does work, but for all attack types. So i can just ignore the melee Attack Miss-Chance :square:.

In the meantime, i also had a look at the 3.5E Ruleset. I looked for all "CONC" text in the script files, copied them and re-named them to ENTSH (short for entropic Shield). I added lines to the following scripts:

data_common.lua
data_desktop_35E.lua
manager_action_attack.lua
manager_actor_35E.lua
manager_combat2.lua
strings_35e.xml



In the manager_actor_35E.lua script i added
rRoll.sRange == "R" to the if statement for my entropic shield, so only for ranged attackes the miss-chance is calculated ;)

Trenloe
September 12th, 2025, 13:53
Good to see you're diving into the code and learning about how FG does "Stuff".

If you refer to the 3.5E Wiki effects page here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996643237/PFRPG+and+3.5E+Effects It can be seen that the CONC effect has the [range] descriptor, which is described at the bottom of the effects table as: [range] = melee, ranged

So, you can specify concealment for only ranged attacks using the CONC: ranged effect (note the colon ":" after the effect name).

Frectorius
September 12th, 2025, 13:58
Thanks @Trenloe for that Insight!

I guess i should lern to read the wiki properly ��

I am still glad i figuered it out "my way", i learnt alot about how the rule set handles stuff.