OK then this should work if I understood you correctly:
void main()
{
int nHD = GetHitDice(OBJECT_SELF);
if(nHD > 80)
{
int nSave = nHD/2;
effect eSave = EffectSavingThrowIncrease(SAVING_THROW_FORT,nSave);
eSave = EffectLinkEffects(eSave, EffectSavingThrowIncrease(SAVING_THROW_REFLEX,nSave));
eSave = EffectLinkEffects(eSave, EffectSavingThrowIncrease(SAVING_THROW_WILL,nSave));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,SupernaturalEffect(eSave),OBJECT_SELF);
}
}
(EDIT: forget about it it doesnt work)
Lazarus: Add this piece of code into your OnSpawn script (nw_c2_default9 is default one), it should fix it then.
Whizard, BTW you did tested also epicattack.2da ? It also didn't worked? Because I tested this 2da on a player character above 40lvl (using custom NWNX plugin) and it worked.
Modifié par ShaDoOoW, 16 décembre 2011 - 11:11 .