View Single Post
Old 07-10-2012, 10:08 PM   #214
JCarter426
Senior Member
 
JCarter426's Avatar
 
Join Date: Feb 2008
Location: Look to your left.
Posts: 1,635
Well, I've determined that your CON will never drop below 3. Probably hard coded. So if you have a CON of 12, it will only decrease it by 9. I also believe invulnerability makes you immune from CON decreases, but not CON increases. I really should turn it off... it screwed up other test results in a similar manner just yesterday.

However, I've reported no problems regarding CON increase of any kind. Here's the script I used:
Code:
void main() {

	float fDelay = IntToFloat(GetScriptParameter(1));
	int iAbility = GetScriptParameter(2);
	int iAmount = GetScriptParameter(3);
	float fDuration = IntToFloat(GetScriptParameter(4));

switch(GetScriptParameter(5)) {

	case 0:
		DelayCommand(fDelay, ApplyEffectToObject(1, EffectAbilityDecrease(iAbility, iAmount), GetSpellTargetObject(), fDuration));
		break;

	case 1:
		DelayCommand(fDelay, ApplyEffectToObject(1, EffectAbilityIncrease(iAbility, iAmount), GetSpellTargetObject(), fDuration));
		break;

	}
		
}
I really can't see anything fundamentally different. So I'm not sure what the problem is. Are you sure you're doing your math correctly?


JCarter426 is offline   you may: quote & reply,