Scripts

TR_m1_NPC_Mee_sei

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
T_Local_NPC
T_Local_NoLore
NoLore
control
controlQ
Source
1begin TR_m1_NPC_Mee_sei 2 3short TR_Map 4short T_Local_NPC 5short T_Local_NoLore 6short NoLore 7short control 8short controlQ 9 10if ( OnDeath ) 11 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble > 0 ) 12 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble != 100 ) 13 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble != 200 ) 14 Journal TR_m1_TO_RunningIntoTrouble 300 15 endif 16 endif 17 endif 18endif 19 20if ( control == 1 ) 21 if ( GetPCCell "Orelu Plantation, Nifum Othril's Shack" == 1 ) 22 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble < 110 ) 23 set control to 2 24 Journal TR_m1_TO_RunningIntoTrouble 110 25 AIWander 0 0 0 26 PositionCell 4185 4003 14680 12000 "Orelu Plantation, Nifum Othril's Shack" ;TR_m1_MARK_Mee_Sei 27 AIWander 0 0 0 28 endif 29 elseif ( GetPCCell "Firewatch, Sewers: Vaynth Quarter" == 1 ) 30 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble == 100 ) 31 set control to 2 32 AIWander 0 0 0 33 endif 34 endif 35elseif ( control == 2 ) 36 if ( CellChanged ) 37 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble == 200 ) 38 set control to 3 39 PositionCell 230769 149654 1385 0 "Orelu Plantation" ;TR_m1_MARK_Mee_Sei 40 AIWander 128 0 0 60 30 10 0 0 0 0 0 0 41 elseif ( GetJournalIndex TR_m1_TO_RunningIntoTrouble == 100 ) 42 set control to 3 43 if ( GetItemCount slave_bracer_left >= 1 ) 44 RemoveItem slave_bracer_left 1 45 endif 46 AddItem common_shirt_02 1 47 Equip common_shirt_02 48 PositionCell 3140 5900 191 0 "Firewatch, Sewers: Vaynth Quarter" ;TR_m1_MARK_Mee_Sei 49 AIWander 0 0 0 50 endif 51 endif 52endif 53 54if ( TR_Map ) 55 return 56endif 57 58Set TR_Map to 1 59 60end