Scripts

TR_m1_Q59_ADH_script_3

TR_Mainland.esm
Variables 5
Local Variables
state
nolore
TR_Map
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m1_Q59_ADH_script_3 2 3short state 4short nolore 5short TR_Map 6short T_Local_NPC 7short T_Local_NoLore 8 9if ( MenuMode ) 10 Return 11elseif ( state == -1 ) 12 Return 13endif 14 15if ( TR_Map == 0 ) 16 set TR_Map to 1 17endif 18 19if ( state == 0 ) 20 if ( GetJournalIndex TR_m1_PT_ADH == 300 ) 21 set state to 1 22 endif 23 return 24elseif ( state == 1 ) 25 if ( CellChanged ) 26 Disable 27 set state to 2 28 endif 29 return 30elseif ( state == 2 ) 31 if ( GetJournalIndex TR_m1_PT_ADH == 900 ) 32 if ( GetDeadCount TR_m1_Q59_ADH_Assa_3b < 1 ) 33 Enable 34 set state to -1 35 else 36 set state to -1 37 SetDelete 1 38 Return 39 endif 40 elseif ( GetJournalIndex TR_m1_PT_ADH >= 901 ) 41 set state to -1 42 SetDelete 1 43 Return 44 endif 45endif 46 47end