remove attribute not working?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Eliath
New User
Posts: 14
Joined: Sun Aug 27, 2006 6:12 pm

remove attribute not working?

Post 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.
Eliath
New User
Posts: 14
Joined: Sun Aug 27, 2006 6:12 pm

Post by Eliath »

lots of yelling and its solved. Didn't need number to remove, just needed the attribute mod it was under.
Post Reply