My test character should have the following icons next to his portrait, which come from persistent racial feats.
Skill Increase
Skill Decrease
Saving Throw Increase
This works and I have confirmed the correct spell IDs for each feat in-game, the feats reload correctly after a rest, and the appropriate icons display.
This is the code block I use to prevent stacking for persistent feats.
void RemoveSpellEffects(int nSpellID,object oPC)
{
effect eEffect=GetFirstEffect(oPC);
while(GetIsEffectValid(eEffect))
{
if(GetEffectSpellId(eEffect)==nSpellID)
{
RemoveEffect(oPC,eEffect);
}
eEffect=GetNextEffect(oPC);
}
}
Again this works fine.
Today I began testing my first activated feat. The feat itself works fine, temporary buffs are applied, new icons appear next to the portrait (Temporary Hit Points & more skill increases in this case).
The issue is that when the buffs expire, the only icon left on my character's portrait is Skill Decrease.
This is purely a cosmetic problem, as the character sheet reflects the appropriate skill and saving throw numbers.
I must then rest, or transition to fix this display issue.
Is this normal? Is there a workaround, some way to refresh the UI via script?
I can provide 2da or feat script info if necessary.
Thanks!
Modifié par Erithol, 17 septembre 2010 - 12:50 .





Retour en haut






