HoS_PRC8/_mod/_module/nss/oe_elysium.nss

17 lines
727 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
// on enter elysium
void main()
{
object oPC=GetEnteringObject();
effect eWis=EffectAbilityDecrease(ABILITY_WISDOM,2);
effect eInt=EffectAbilityDecrease(ABILITY_INTELLIGENCE,2);
effect eCha=EffectAbilityDecrease(ABILITY_CHARISMA,2);
if (GetAlignmentGoodEvil(oPC)!=ALIGNMENT_GOOD)
{ // apply elysium negative effects
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eWis,oPC,1.0);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eInt,oPC,1.0);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eCha,oPC,1.0);
DelayCommand(2.0,SendMessageToPC(oPC,"The oppressing goodness of this place has negative effects upon you."));
} // apply elysium negative effects
ExecuteScript("area_visit",OBJECT_SELF);
}