Scripts

TR_m4_NPC_Svog

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Svog 2 3; Controls that Svog disappears with the ship, and that he force greets the player at the appropriate time 4 5short TR_Map 6short control 7short controlQ 8short NoLore 9short T_Local_NPC 10short T_Local_NoLore 11 12if ( MenuMode ) 13 return 14endif 15 16if ( TR_m4_AndoHH_ShipDisable == 2 ) 17 if ( GetDisabled == 0 ) 18 Disable 19 endif 20 return 21endif 22 23if ( TR_m4_AndoHH_ShipTrespass == 1 ) 24 if ( GetJournalIndex "TR_m4_HH_AND_Ship2" >= 50 ) 25 if ( TR_m4_AndoHH_ShipReleased ) 26 if ( controlQ == 0 ) 27 if ( GetDistance Player < 350 ) 28 Set controlQ to 1 29 ForceGreeting 30 endif 31 endif 32 endif 33 endif 34endif 35 36if ( TR_Map == 4 ) 37 return 38endif 39 40set TR_Map to 4 41 42End