// 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); }