116 lines
3.7 KiB
Plaintext
116 lines
3.7 KiB
Plaintext
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") == 1)
|
|
|
|
{
|
|
|
|
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") == 5)
|
|
|
|
{
|
|
|
|
object oDark1 = GetWaypointByTag("ba2_perdark1");
|
|
object oDark2 = GetWaypointByTag("ba2_perdark2");
|
|
object oDark3 = GetWaypointByTag("ba2_perdark3");
|
|
object oDark4 = GetWaypointByTag("ba2_perdark4");
|
|
|
|
AssignCommand(oDoomed, JumpToLocation(lDest5));
|
|
|
|
if(!GetLocalInt(oArea, "Darkness") == 1)
|
|
|
|
{
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_DARKNESS), GetLocation(oDark1));
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_DARKNESS), GetLocation(oDark2));
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_DARKNESS), GetLocation(oDark3));
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_DARKNESS), GetLocation(oDark4));
|
|
SetLocalInt(oArea, "Darkness", 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(GetLocalInt(oWise, "Sattuma") == 2)
|
|
|
|
{
|
|
|
|
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") == 3)
|
|
|
|
{
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
}
|