Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
198
_module/nss/ty_r4_southexit.nss
Normal file
198
_module/nss/ty_r4_southexit.nss
Normal file
@@ -0,0 +1,198 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetClickingObject();
|
||||
effect eRoomgear = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE, FALSE);
|
||||
|
||||
if(GetLocalInt(GetObjectByTag("room4counter"), "exitcounter") == 3)
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 0)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r4_to_r9"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 0);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 1)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r5_to_r9"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 0);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 2)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r8_to_r9"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 0);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room9counter"), "exitcounter") == 3)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r6_to_r9"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 0);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room4counter"), "exitcounter") == 0)
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 0)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r4_to_r13"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 1);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 1)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13w"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 1);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 2)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13s"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 1);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 3)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13e"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 1);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room4counter"), "exitcounter") == 1)
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room8counter"), "exitcounter") == 0)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r4_to_r8"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 2);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room8counter"), "exitcounter") == 1)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r7_to_r8"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 2);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room8counter"), "exitcounter") == 2)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r9_to_r8"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 2);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room8counter"), "exitcounter") == 3)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r3_to_r8"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 2);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room3counter"), "exitcounter") == 2)
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room1counter"), "exitcounter") == 2)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r2_to_r1"))));
|
||||
SetLocalInt(GetObjectByTag("room3counter"), "exitcounter", 3);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room1counter"), "exitcounter") == 3)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r5_to_r1"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 3);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room1counter"), "exitcounter") == 0)
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("a4_leverswitch"), "a4leverused") == 1)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_leavetomb"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 3);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("The passageway seems to be blocked by solid rock and is impassable.", oPC, TRUE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(GetLocalInt(GetObjectByTag("room1counter"), "exitcounter") == 1)
|
||||
{
|
||||
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r3_to_r1"))));
|
||||
SetLocalInt(GetObjectByTag("room4counter"), "exitcounter", 3);
|
||||
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room4counter")), 6.0));
|
||||
DelayCommand(1.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_crank1")));
|
||||
DelayCommand(5.0, AssignCommand(GetObjectByTag("room4counter"), PlaySound("as_cv_boomdist2")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user