GraceCB

Untitled

Sep 30th, 2023
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. scn NVDLC01VillaTravelTriggerScript
  2. ; JSH
  3. ; Knocks the player out and transports him to the Villa.
  4.  
  5. ;CES 10/18/10
  6. ;Fine tuning and polishing the gassing part of the script
  7.  
  8.  
  9. short StartUp ;1= Player has tripped the trigger zone
  10. short EndStartUp
  11. float TimerA
  12. float TimerB
  13. float TimerC
  14. float TimerD
  15. float TimerE
  16. float TimerZ ;Added for first timer to trigger player teleportation
  17.  
  18. short bTimerZDone
  19.  
  20. BEGIN OnTrigger player
  21.  
  22. ; Complete NVDLC01MQ00 and get the player set up to be knocked out.
  23. if (StartUp == 0) && (GetStageDone NVDLC01MQ00 10 == 1)
  24.  
  25. if isModLoaded "TaleOfTwoWastelands.esm" == 0
  26. if (VNPCFollowers.bBooneHired == 1)
  27. ;set CraigBooneRef.Waiting to 1
  28. elseif (VNPCFollowers.ArcadeHired == 1)
  29. ;set ArcadeRef.Waiting to 1
  30. elseif (VNPCFollowers.RaulHired == 1)
  31. ;set RaulRef.Waiting to 1
  32. elseif (VNPCFollowers.bVeronicaHired == 1)
  33. ;set VeronicaRef.Waiting to 1
  34. elseif (VNPCFollowers.bLilyHired == 1)
  35. ;set LilyRef.Waiting to 1
  36. elseif (VNPCFollowers.bCassHired == 1)
  37. ;set RoseOfSharonCassidyRef.Waiting to 1
  38. endif
  39.  
  40. if (VNPCFollowers.RexHired == 1)
  41. ;set RexRef.Waiting to 1
  42. elseif (VNPCFollowers.bEdEHired == 1)
  43. ;set EDE1Ref.Waiting to 1
  44. ;set EDE2Ref.Waiting to 1
  45. ;set EDE3Ref.Waiting to 1
  46. endif
  47. else
  48. ref rTTWFNFireAllFollowers = EditorIdToFormID "TTWFNFireAllFollowers"
  49. Call rTTWFNFireAllFollowers
  50. SetNumericGameSetting fCombatTeammateFollowRadiusMult 1
  51. endif
  52.  
  53. SetObjectiveCompleted NVDLC01MQ00 10 1
  54. SetStage NVDLC01MQ00 100
  55. DisablePlayerControls 1 1 1 1 1 1 1
  56. Set TimerA to 1
  57. Set TimerA to .2
  58. Set StartUp to 1
  59. ApplyImageSpaceModifier ExplosionInFace
  60.  
  61. PlaySound QSTNVDLC01OpeningStinger
  62. PlaySound QSTDLCTrap
  63.  
  64. endif
  65.  
  66. END
  67.  
  68.  
  69. BEGIN GameMode
  70.  
  71. ; Player gets gassed.
  72.  
  73. if ( StartUp == 1 )
  74.  
  75. if ( TimerZ > 0 ) && (bTimerZDone== 0)
  76. Set TimerZ to ( TimerZ - GetSecondsPassed )
  77. else
  78. set bTimerZDone to 1
  79. Player.Moveto NVDLC01PlayerGasMarker
  80. endif
  81.  
  82. if ( TimerA > 0 )
  83. Set TimerA to ( TimerA - GetSecondsPassed )
  84. else
  85. player.AddScriptPackage NVDLC01PlayerKnockedOut
  86. PipboyRadioOff
  87. Set TimerB to 2
  88. Set StartUp to 2
  89. endif
  90. endif
  91.  
  92. ; Player hits the ground, dazed.
  93.  
  94. if ( StartUp == 2 )
  95. if ( TimerB > 0 )
  96. Set TimerB to ( TimerB - GetSecondsPassed )
  97. ;BeginFX
  98. FXSprayJet0101Ref.enable
  99. FXSprayJet0102Ref.enable
  100. FXSprayJet0103Ref.enable
  101. FXSprayJet0104Ref.enable
  102. ;EndFX
  103. else
  104. Set TimerC to 8
  105. Set StartUp to 3
  106. endif
  107. endif
  108.  
  109. ; Player slowly passes out.
  110.  
  111. if ( StartUp == 3 )
  112. if ( TimerC > 0 )
  113. Set TimerC to ( TimerC - GetSecondsPassed )
  114. else
  115.  
  116. StartQuest NVDLC01NewVegasFollowerFireQuest;
  117. if GetINIFloat "CustomSettings:bEquipmentRemoval" "DMT Config.ini" == 1
  118. player.RemoveAllItems NVDLC01PlayerEquipmentContainerRef
  119. endif
  120. imod FadeToBlackPermanent
  121. Set TimerC to 5
  122. Set StartUp to 4
  123. endif
  124. endif
  125.  
  126. ; Player wakes up.
  127. if ( StartUp == 4 )
  128. if ( TimerC > 0 )
  129. Set TimerC to ( TimerC - GetSecondsPassed )
  130. else
  131. StartQuest NVDLC01Intro
  132. Set TimerE to 5
  133. Set StartUp to 5
  134. endif
  135. endif
  136.  
  137. if ( StartUp == 5 )
  138. if ( TimerC > 0 )
  139. Set TimerC to ( TimerC - GetSecondsPassed )
  140. else
  141. Player.RemoveScriptPackage
  142. Set StartUp to 6
  143. ;EnablePlayerControls
  144. ;DisableFX
  145. FXSprayJet0101Ref.disable
  146. FXSprayJet0102Ref.disable
  147. FXSprayJet0103Ref.disable
  148. FXSprayJet0104Ref.disable
  149. ;DisableFX
  150. endif
  151. endif
  152.  
  153.  
  154. END
  155.  
  156.  
Advertisement
Add Comment
Please, Sign In to add comment