Scripts

TR_m4_NPC_ManitPal

TR_Mainland.esm
Variables 8
Local Variables
disableOnce
teleportOnce
confrontOnce
killer
NoLore
T_Local_NPC
T_Local_NoLore
TR_Map
Source
1begin TR_m4_NPC_ManitPal 2 3short disableOnce 4short teleportOnce 5short confrontOnce 6short killer 7short NoLore 8short T_Local_NPC 9short T_Local_NoLore 10short TR_Map 11 12if ( MenuMode == 1 ) 13 return 14endif 15 16if ( disableOnce == 0 ) 17 disable 18 set TR_Map to 4 19 set disableOnce to 1 20endif 21 22if ( confrontOnce == 0 ) 23 if ( GetDistance, player <= 450 ) 24 if ( GetJournalIndex "TR_m4_FG_UshuKur5" >= 50 ) 25 if ( GetHealth >= 1 ) 26 set confrontOnce to 1 27 Journal "TR_m4_FG_UshuKur5B" 75 28 ForceGreeting 29 endif 30 endif 31 endif 32endif 33 34;if ( confrontOnce == 1 ) 35; if ( MenuMode == 0 ) 36; SetFight 90 37; endif 38;endif 39 40if ( GetJournalIndex "TR_m4_FG_UshuKur1" >= 10 ) 41 if ( GetJournalIndex "TR_m4_FG_UshuKur1" < 200 ) 42 if ( GetDisabled == 1 ) 43 enable 44 endif 45 endif 46endif 47 48if ( OnDeath == 1 ) 49 if ( GetJournalIndex "TR_m4_FG_UshuKur2" >= 10 ) 50 if ( GetJournalIndex "TR_m4_FG_UshuKur2" <= 75 ) 51 Journal "TR_m4_FG_UshuKur2" 100 52 endif 53 endif 54endif 55 56if ( GetJournalIndex "TR_m4_FG_UshuKur2" >= 75 ) 57 if ( CellChanged == 1 ) 58 if ( teleportOnce == 0 ) 59 PositionCell, -52226, -215737, 610, 0, "Ishanuran Camp" 60 SetHello 30 61 AiWander 0 0 30 20 0 5 0 0 62 set teleportOnce to 1 63 endif 64 endif 65endif 66 67 68end