Battledale_PRC8/_module/nss/ty_r6_southexit.nss

193 lines
16 KiB
Plaintext
Raw Permalink Normal View History

void main()
{
object oPC = GetClickingObject();
effect eRoomgear = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE, FALSE);
if(GetLocalInt(GetObjectByTag("room6counter"), "exitcounter") == 2)
{
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 0)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r6_to_r9"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 3);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 1)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r4_to_r9"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 3);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 2)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r5_to_r9"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 3);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 3)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r8_to_r9"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 3);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
}
}
}
}
else
{
if(GetLocalInt(GetObjectByTag("room6counter"), "exitcounter") == 3)
{
if(GetLocalInt(GetObjectByTag("room2counter"), "exitcounter") == 0)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r6_to_r2"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 0);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room2counter"), "exitcounter") == 1)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r11_to_r2"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 0);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room2counter"), "exitcounter") == 2)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r7_to_r2"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 0);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room2counter"), "exitcounter") == 3)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r1_to_r2"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 0);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
}
}
}
}
else
{
if(GetLocalInt(GetObjectByTag("room6counter"), "exitcounter") == 0)
{
if(GetLocalInt(GetObjectByTag("room5counter"), "exitcounter") == 0)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r6_to_r5"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 1);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room5counter"), "exitcounter") == 1)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r1_to_r5"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 1);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room5counter"), "exitcounter") == 2)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r9_to_r5"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 1);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room5counter"), "exitcounter") == 3)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r10_to_r5"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 1);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
}
}
}
}
else
{
if(GetLocalInt(GetObjectByTag("room6counter"), "exitcounter") == 1)
{
if(GetLocalInt(GetObjectByTag("room7counter"), "exitcounter") == 0)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r6_to_r7"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 2);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room7counter"), "exitcounter") == 1)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r8_to_r7"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 2);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room7counter"), "exitcounter") == 2)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r2_to_r7"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 2);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
else
{
if(GetLocalInt(GetObjectByTag("room7counter"), "exitcounter") == 3)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r3_to_r7"))));
SetLocalInt(GetObjectByTag("room6counter"), "exitcounter", 2);
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room6counter")), 6.0));
DelayCommand(1.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_crank1")));
DelayCommand(5.0, AssignCommand(GetObjectByTag("room6counter"), PlaySound("as_cv_boomdist2")));
}
}
}
}
}
}
}
}
}