Scripts

TR_m4_q_TTSFran_scrpt

TR_Mainland.esm
Variables 10
Local Variables
TR_Map
control
controlQ
nolore
DeathCheck
DayTarget
T_Local_NPC
T_Local_NoLore
HourTarget
GameHourCheck
Source
1begin TR_m4_q_TTSFran_scrpt 2 3short TR_Map 4short control 5short controlQ 6short nolore 7short DeathCheck 8short DayTarget 9float HourTarget 10float GameHourCheck 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( MenuMode ) 15 return 16endif 17 18if ( TR_Map != 4 ) 19 set TR_Map to 4 20endif 21 22if ( Control == 0 ) ;Starts a global script to do things(only here because I had the faulty assumption that you can't get targetted scripts through dialogue box) 23 if ( GetJournalIndex "TR_m4_wil_TribunalTS" == 10 ) 24 player->StartScript TR_m4_q_TTSJournal 25 set Control to 1 26 elseif ( GetJournalIndex "TR_m4_wil_TribunalTS" == 17 ) 27 player->StartScript TR_m4_q_TTSJournal 28 set Control to 1 29 endif 30endif 31 32if ( DeathCheck != 0 ) ;Deathcheck except for the amulet 33 return 34elseif ( GetJournalIndex TR_m4_wil_TribunalTS < 10 ) 35 return 36elseif ( OnDeath ) 37 journal TR_m4_wil_TribunalTS 21 38 set TR_m4_q_TTSFranDead to 1 39 set DeathCheck to 1 40endif 41 42if ( TR_m4_q_TTSCoraneDead ) 43 if ( TR_m4_q_TTSCombatState == 0 ) 44 if ( TR_m4_q_Corane_Morianne.control1 == 1 ) 45 SetFight 100 46 StartCombat Player 47 endif 48 endif 49endif 50 51if ( ControlQ == 0 ) 52 if ( GetJournalIndex "TR_m4_wil_TribunalTS" >= 130 ) 53 return 54 elseif ( TR_m4_q_Corane_Morianne->GetDisabled ) 55 if ( GetDisabled == 0 ) 56 Disable 57 set ControlQ to 1 58 endif 59 endif 60endif 61 62End