Scripts

TR_m1_Q59_MaI_Script_6

TR_Mainland.esm
Variables 8
Local Variables
state
state2
daycount
dday
noLore
TR_Map
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m1_Q59_MaI_Script_6 2 3;This script counts two days wait for Inera Ilneram to give the resolution. 4 5short state 6short state2 7short daycount 8short dday 9short noLore 10short TR_Map 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( TR_Map != 1 ) 15 set TR_Map to 1 16endif 17 18if ( state2 == 0 ) 19 if ( GetJournalIndex "TR_m1_PT_MaI_4" >= 10 ) 20 if ( GetJournalIndex "TR_m1_PT_MaI_4" < 109 ) 21 if ( GetDeadCount "tr_m1_inera_ilneram" > 0 ) 22 Journal "TR_m1_PT_MaI_4" 352 23 set state2 to 1 24 endif 25 endif 26 endif 27 if ( GetJournalIndex "TR_m1_PT_MaI_4" >= 110 ) 28 if ( GetJournalIndex "TR_m1_PT_MaI_4" < 119 ) 29 if ( GetDeadCount "tr_m1_inera_ilneram" > 0 ) 30 Journal "TR_m1_PT_MaI_4" 352 31 set state2 to 1 32 endif 33 endif 34 endif 35 if ( GetJournalIndex "TR_m1_PT_MaI_4" >= 120 ) 36 if ( GetJournalIndex "TR_m1_PT_MaI_4" < 129 ) 37 if ( GetDeadCount "tr_m1_inera_ilneram" > 0 ) 38 Journal "TR_m1_PT_MaI_4" 352 39 set state2 to 1 40 endif 41 endif 42 endif 43 if ( GetJournalIndex "TR_m1_PT_MaI_4" >= 350 ) 44 if ( GetJournalIndex "TR_m1_PT_MaI_4" < 500 ) 45 if ( GetDeadCount "tr_m1_inera_ilneram" > 0 ) 46 Journal "TR_m1_PT_MaI_4" 352 47 set state2 to 1 48 endif 49 endif 50 endif 51endif 52 53If ( MenuMode ) 54 Return 55endif 56 57if ( state == -1 ) 58 Return 59endif 60 61if ( state == 0 ) 62 if ( GetJournalIndex "TR_m1_PT_MaI_4" == 102 ) 63 set state to 1 64 set daycount to DaysPassed 65 elseif ( GetJournalIndex "TR_m1_PT_MaI_4" == 112 ) 66 set state to 1 67 set daycount to DaysPassed 68 endif 69endif 70 71if ( state == 1 ) 72 set dday to ( DaysPassed - daycount ) 73 if ( dday >= 2 ) 74 set state to -1 75 endif 76endif 77 78end