Code:
if( (changeGraphic == 0x190 ) or (changeGraphic == 0x191 ));
SendSysMessage( caster, "remove stat works ");
if (GetObjProperty( caster, "SubRaceName" ) == "Cat")
RemoveAttributeMod(caster, ATTRIBUTEID_STRENGTH, CInt(50));
RemoveAttributeMod(caster, ATTRIBUTEID_DEXTERITY, CInt(50));
RemoveAttributeMod(caster, ATTRIBUTEID_INTELLIGENCE, CInt(50));
SendSysMessage( caster, "you lose stat cat" );
endif
endif
That is an extract from a script i'm working on, the script adds stats when your shapechanged, and removes them when your not. However it doesn't remove them, the if statement works as the sys message comes up. So that leaves me with the removeattributemod been incorrect. Can any1 help me.