Scripts

TR_m1_Q66_Ra1_Agent

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
state
control
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m1_Q66_Ra1_Agent 2 3short TR_Map 4short state 5short control 6short NoLore 7float timer 8short T_Local_NPC 9short T_Local_NoLore 10 11if ( state == -1 ) 12 if ( timer > 1 ) 13 SetDelete 1 14 Return 15 endif 16 set timer to ( timer + GetSecondsPassed ) 17endif 18 19if ( state == 0 ) 20 Disable 21 set state to 1 22 return 23elseif ( state == 1 ) 24 if ( GetJournalIndex TR_m1_HT_Ra1 >= 10 ) 25 Enable 26 set state to 2 27 endif 28 return 29elseif ( state == 2 ) 30 if ( GetJournalIndex TR_m1_HT_Ra1 >= 20 ) 31 if ( CellChanged ) 32 Disable 33 set state to -1 34 endif 35 endif 36endif 37 38if ( TR_Map == 1 ) 39 return 40endif 41 42set TR_Map to 1 43 44End