Scripts

TR_m4_Cr_Nirnbound_Scp

TR_Mainland.esm
Variables 3
Local Variables
control
runRespawn
speakOnce
Source
1begin TR_m4_Cr_Nirnbound_Scp 2 3short control 4short runRespawn 5short speakOnce 6 7if ( MenuMode ) 8 return 9endif 10 11if ( GetDisabled ) 12 return 13endif 14 15if ( control == 1 ) ; Freed 16 PlaceAtMe "T_Glb_Var_SummonFX" 1 1 1 17 PlaySound "T_SndObj_ShrineSheog" 18 disable 19 set control to 2 20 return 21endif 22 23if ( GetJournalIndex "TR_m4_wil_NirnBoundSaintD" == 100 ) 24 if ( OnDeath ) 25 Journal TR_m4_wil_NirnBoundSaint 210 26 endif 27 return 28endif 29 30if ( TR_m4_NirnBoundGlobal1 ) ; Pushed the boulder 31 if ( GetDistance TR_m4_Q_NirnboundBoulder02 >= 1350 ) 32 SetHealth 150 33 set runRespawn to 1 34 endif 35 if ( speakOnce == 0 ) 36 if ( GetDistance player <= 330 ) 37 ForceGreeting 38 set speakOnce to 1 39 endif 40 endif 41elseif ( GetDistance TR_m4_Q_NirnboundBoulder >= 1350 ) 42 SetHealth 150 43 set runRespawn to 1 44endif 45 46if ( OnDeath ) 47 set runRespawn to 1 48 Resurrect 49 if ( speakOnce ) 50 SetFight 90 51 endif 52endif 53 54if ( runRespawn == 0 ) 55 return 56endif 57 58PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 59PlaySound "T_SndObj_ShrineSheog" 60PlaySoundVP "T_SndEnv_GhostScream03" 0.75 1.00 61if ( TR_m4_NirnBoundGlobal1 ) ; Pushed the boulder 62 TR_m4_Q_NirnboundBoulder02->ExplodeSpell TR_m4_q_NirnboundSpell 63 PositionCell -62121 -134637 3995 13200 "Roth Roryn Region" ; TR_m4_MARK_AurmazlKaari 64else 65 TR_m4_Q_NirnboundBoulder->ExplodeSpell TR_m4_q_NirnboundSpell 66 PositionCell -63509 -139737 7564 5520 "Roth Roryn Region" ; TR_m4_MARK_AurmazlKaari 67endif 68PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 69set runRespawn to 0 70 71if ( GetTarget player ) 72 if ( GetDistance player > 1300 ) 73 StopCombat 74 endif 75endif 76 77end