void main() { object oArea = GetObjectByTag("ba2_thwid6"); object oWise = GetObjectByTag("ba2_numgive"); object oDoomed = GetEnteringObject(); if(GetIsPossessedFamiliar(oDoomed)){ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oDoomed);} object oDest1 = GetWaypointByTag("ba2_waytele1"); object oDest2 = GetWaypointByTag("ba2_waytele2"); object oDest3 = GetWaypointByTag("ba2_waytele3"); object oDest4 = GetWaypointByTag("ba2_waytele4"); object oDest5 = GetWaypointByTag("ba2_toende"); location lDest1 = GetLocation(oDest1); location lDest2 = GetLocation(oDest2); location lDest3 = GetLocation(oDest3); location lDest4 = GetLocation(oDest4); location lDest5 = GetLocation(oDest5); if(GetLocalInt(oWise, "Sattuma") == 2) { if(!GetLocalInt(oArea, "Suffering") == 1) { AssignCommand(oDoomed, JumpToLocation(lDest1)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GREATER_RUIN), oDoomed)); } else { AssignCommand(oDoomed, JumpToLocation(lDest4)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(TRUE, TRUE), oDoomed)); } } else if(GetLocalInt(oWise, "Sattuma") == 3) { ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_LOS_HOLY_30), oDoomed); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_MAGIC_RESISTANCE), oDoomed, 2.0f); } else if(GetLocalInt(oWise, "Sattuma") == 1) { ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_LOS_HOLY_30), oDoomed); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_MAGIC_RESISTANCE), oDoomed, 2.0f); } else if(GetLocalInt(oWise, "Sattuma") == 5) { if(!GetLocalInt(oArea, "Wondering") == 1) { AssignCommand(oDoomed, JumpToLocation(lDest2)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GREATER_RUIN), oDoomed)); } else { AssignCommand(oDoomed, JumpToLocation(lDest3)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectAbilityDecrease(ABILITY_STRENGTH, 6), oDoomed)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectAbilityDecrease(ABILITY_CONSTITUTION, 6), oDoomed)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectAbilityDecrease(ABILITY_DEXTERITY, 6), oDoomed)); } } else if(GetLocalInt(oWise, "Sattuma") == 4) { AssignCommand(oDoomed, JumpToLocation(lDest3)); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GREATER_RUIN), oDoomed)); } }