Scripts

TR_m3_NPC_JaJabba

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
Source
1Begin TR_m3_NPC_JaJabba 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9short T_Local_Khajiit 10 11if ( TR_m3_HI_RoaDyr2_SlaveStatus == 1 ) 12 if ( CellChanged ) 13 Disable 14 set FreedSlavesCounter to ( FreedSlavesCounter + 1 ) 15 set TR_m3_HI_RoaDyr2_SlaveStatus to 2 16 endif 17endif 18 19if ( controlQ == 1 ) 20 if ( GetPCCell "Rilsoan, Hetman Falden's Shack" == 1 ) 21 if ( GetJournalIndex TR_m3_HI_RoaDyr2 < 30 ) 22 set controlQ to 2 23 Journal TR_m3_HI_RoaDyr2 30 24 AIWander 0 0 0 25 return 26 endif 27 endif 28elseif ( controlQ == 2 ) 29 if ( CellChanged ) 30 if ( GetJournalIndex TR_m3_HI_RoaDyr2 == 100 ) 31 set controlQ to 3 32 PositionCell -156 80 0 3600 "Rilsoan, Hetman Falden's Shack" ; TR_m3_MARK_JaJabba 33 AIWander 0 0 0 34 if ( GetItemCount netch_leather_helm >= 1 ) 35 removeItem netch_leather_helm 1 36 endif 37 if ( GetItemCount netch_leather_shield >= 1 ) 38 removeItem netch_leather_shield 1 39 endif 40 if ( GetItemCount "iron shortsword" >= 1 ) 41 removeItem "iron shortsword" 1 42 endif 43 addItem slave_bracer_right 1 44 Equip slave_bracer_right 45 return 46 endif 47 endif 48endif 49 50if ( T_Local_Khajiit ) 51 return 52endif 53 54set T_Local_Khajiit to 1 55set TR_Map to 3 56 57End