Scripts

TR_m7_HL_FG_Q5_ShipCrewSc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
TR_m7_HL_FG_ShipCrew
OnPCHitMe
Source
1Begin TR_m7_HL_FG_Q5_ShipCrewSc 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8 9short TR_m7_HL_FG_ShipCrew 10 11short OnPCHitMe 12 13if ( GetJournalIndex TR_m7_FG_HL_Q5 < 10 ) 14 if ( GetDisabled == 0 ) 15 disable 16 endif 17 return 18elseif ( GetJournalIndex TR_m7_FG_HL_Q5 >= 100 ) 19 if ( GetDisabled == 0 ) 20 disable 21 endif 22 return 23elseif ( GetDisabled ) 24 enable 25endif 26 27if ( OnDeath ) 28 set TR_m7_HL_FG_Q5_DeadCount to ( TR_m7_HL_FG_Q5_DeadCount + 1 ) 29 if ( TR_m7_HL_FG_Q5_DeadCount >= 3 ) 30 Journal TR_m7_FG_HL_Q5 50 31 endif 32endif 33 34if ( control == 0 ) 35 if ( GetDistance player < 256 ) 36 if ( player->GetPos z >= 150 ) 37 set control to 1 38 endif 39 elseif ( OnPCHitMe ) 40 set control to 1 41 endif 42endif 43 44if ( control == 1 ) 45 set "TR_m7_Galdris Sero".control to 2 46 set "TR_m7_Vubius Mornius".control to 2 47 set "TR_m7_Salvela Dothan".control to 2 48endif 49 50if ( control == 2 ) 51 set control to 3 52 setfight 90 53endif 54 55if ( TR_Map ) 56 return 57endif 58 59set TR_Map to 7 60set TR_m7_HL_FG_ShipCrew to 1 61 62End