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.
112 lines
9.7 KiB
Plaintext
112 lines
9.7 KiB
Plaintext
void main()
|
|
{
|
|
object oPC = GetClickingObject();
|
|
effect eRoomgear = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE, FALSE);
|
|
|
|
if(GetLocalInt(GetObjectByTag("room12counter"), "exitcounter") == 3)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r12_to_rspike"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 0);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12wpit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12spit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room12counter"), "exitcounter") == 0)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r12_to_a3"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 1);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12spit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12wpit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room12counter"), "exitcounter") == 1)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r12_to_rspike"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 2);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12wpit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12spit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room12counter"), "exitcounter") == 2)
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room3counter"), "exitcounter") == 0)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r12_to_r3"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 3);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12spit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12wpit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room3counter"), "exitcounter") == 1)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r8_to_r3"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 3);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12spit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12wpit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room3counter"), "exitcounter") == 2)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r1_to_r3"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 3);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12spit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12wpit_snd")));
|
|
}
|
|
else
|
|
{
|
|
if(GetLocalInt(GetObjectByTag("room3counter"), "exitcounter") == 3)
|
|
{
|
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r7_to_r3"))));
|
|
SetLocalInt(GetObjectByTag("room12counter"), "exitcounter", 3);
|
|
DelayCommand(1.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRoomgear, GetLocation(GetObjectByTag("room12counter")), 6.0));
|
|
DelayCommand(1.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_crank1")));
|
|
DelayCommand(5.0, AssignCommand(GetObjectByTag("room12counter"), PlaySound("as_cv_boomdist2")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12npit_snd")));
|
|
DelayCommand(3.0, SoundObjectPlay(GetObjectByTag("ty_r12spit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12epit_snd")));
|
|
DelayCommand(3.0, SoundObjectStop(GetObjectByTag("ty_r12wpit_snd")));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|