31 lines
1.3 KiB
Plaintext
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
|
|
}
|