Scripts

TR_m3_NPC_Ivon_Seloth

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
greetOnce
teleportOnce
finalTeleport
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m3_NPC_Ivon_Seloth 2 3short TR_Map 4short control 5short controlQ 6short greetOnce 7short teleportOnce 8short finalTeleport 9short T_Local_NPC 10short NoLore 11short T_Local_NoLore 12 13if ( GetJournalIndex "TR_m3_Aim_Dreugh1" >= 110 ) 14 if ( GetDisabled == 0 ) 15 disable 16 endif 17endif 18 19if ( OnDeath ) 20 if ( GetJournalIndex "TR_m3_Aim_Dreugh2" >= 30 ) 21 if ( GetJournalIndex "TR_m3_Aim_Dreugh2" < 120 ) 22 Journal "TR_m3_Aim_Dreugh2" 120 23 endif 24 endif 25endif 26 27if ( GetJournalIndex "TR_m3_Aim_Dreugh2" >= 200 ) 28 if ( finalTeleport == 0 ) 29 if ( CellChanged == 1 ) 30 disable 31 set finalTeleport to 1 32 endif 33 endif 34endif 35 36if ( GetJournalIndex "TR_m3_Aim_Dreugh2" == 100 ) 37 if ( greetOnce == 0 ) 38 if ( MenuMode == 0 ) 39 if ( GetDistance player <= 512 ) 40 if ( GetInterior == 0 ) 41 ForceGreeting 42 set greetOnce to 1 43 endif 44 endif 45 endif 46 endif 47 if ( GetWeaponDrawn != GetSpellReadied ) 48 ;stop him from diving into dreughs and dying 49 stopcombat 50 endif 51endif 52 53if ( GetJournalIndex "TR_m3_Aim_Dreugh2" == 110 ) 54 if ( MenuMode == 0 ) 55 if ( teleportOnce == 0 ) 56 if ( GetDistance, player >= 850 ) 57 PositionCell 3737 4217 15734 0 "Aimrah, Ivon Seloth: Priest" 58 AiWander 0 0 0 0 0 0 0 59 additem "T_De_Cm_Robe_04" 1 60 set teleportOnce to 1 61 endif 62 endif 63 endif 64endif 65 66if ( TR_Map == 3 ) 67 return 68endif 69 70set TR_Map to 3 71 72End