HoS_PRC8/_mod/_module/nss/temple_powerup.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

31 lines
1.3 KiB
Plaintext

void main()
{
object oPC=OBJECT_SELF;
effect eE;
int nPower=GetLocalInt(oPC,"bTempleQuestPowerUp");
if (nPower==1)
{ // good
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE,1));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_CONSTITUTION,2));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_WISDOM,2));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA,2));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectVisualEffect(VFX_DUR_LIGHT_WHITE_10));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
} // good
else if (nPower==2)
{ // evil
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE,3));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH,2));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY,2));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
eE=SupernaturalEffect(EffectVisualEffect(VFX_DUR_ANTI_LIGHT_10));
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eE,oPC);
} // evil
}