Page 1 of 1

remove attribute not working?

Posted: Sat Sep 09, 2006 12:39 am
by Eliath

Code: Select all

	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.

Posted: Sat Sep 09, 2006 5:13 am
by Eliath
lots of yelling and its solved. Didn't need number to remove, just needed the attribute mod it was under.