Scripts

TR_m1_q67_Va1_Priest_scpt

TR_Mainland.esm
Variables 7
Local Variables
state
control
TR_Map
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m1_q67_Va1_Priest_scpt 2 3short state 4short control 5short TR_Map 6short NoLore 7float timer 8short T_Local_NPC 9short T_Local_NoLore 10 11if ( TR_map != 1 ) 12 Set TR_map to 1 13endif 14 15if ( MenuMode ) 16 Return 17endif 18 19if ( state == 4 ) 20 if ( timer > 3 ) 21 SetDelete 1 22 Return 23 endif 24 set timer to ( timer + GetSecondsPassed ) 25 Return 26endif 27 28if ( OnDeath ) 29 if ( OnMurder == 1 ) 30 Journal TR_m1_HT_Va1 31 31 else 32 Journal TR_m1_HT_Va1 30 33 endif 34 set state to -1 35endif 36 37if ( state == 0 ) 38 Disable 39 set state to 1 40 return 41elseif ( state == 1 ) 42 if ( GetJournalIndex TR_m1_HT_Va1 >= 10 ) 43 Enable 44 set state to 2 45 endif 46 return 47elseif ( state == 2 ) 48 if ( control == 10 ) 49 set state to 3 50 endif 51 return 52elseif ( state == 3 ) 53 if ( CellChanged ) 54 Disable 55 set state to 4 56 endif 57endif 58 59End