PDA

View Full Version : Effect modifier linked to stat



Claneidosyan
November 7th, 2016, 19:06
Hi, a question:
I'm building an extension for my 3.5 house rules and I'd like to add a set of effects linked to a specific stat in the character sheet.
For example if I added a new secondary stat (something like fatigue, sanity, etc.), I'd like to create an effect with power equal to that stat value.
He effect should then be applied to skill rolls.
I started adding this effect in manager_action_skill.lua in the modSkill function, but I have no idea how to link the character node of the db.
in the end the effect should be something like:
nAddMod = nAddMod - something(.. "stat.fatigue.score" ..);

Is this possible (and doable without modifying too much the ruleset)?

Thank you!

Trenloe
November 7th, 2016, 19:11
but I have no idea how to link the character node of the db.
local sActorType, nodeActor = ActorManager.getTypeAndNode(rSource); should give you the DB node of the source of the skill action roll in nodeActor.

Claneidosyan
November 7th, 2016, 19:41
Works like a charm! Thank you!