PDA

View Full Version : 3.5E ability effects code



leozelig
June 30th, 2016, 03:26
I am working on some two-weapon fighting code for the DCC RPG ruleset, and I need to determine the PC's current Agility score. I need to pull in any ability effects from the combat tracker, which would be "AGI" in the short form. I am using the following 3.5E code:


local nAbilityMod, nAbilityEffects = EffectManager.getEffectsBonus(nodeActor, "AGI", true);

If I have the effect "AGI:2", this returns #0 for both variables. I am expecting it to return #2 for nAbilityMod and #1 for nAbilityEffects (I probably don't need an effect count actually). If anyone is familiar with the 3.5E code and has a quick answer, let me know. I'm not going to waste a lot of time on it.

Thanks!

leozelig
July 1st, 2016, 11:28
Never mind, I figured it out. I needed to use rSource instead of nodeActor. That probably doesn't make sense without seeing the rest of the code, but the bottom line is correct function, wrong variable.