Scripts

TR_m7_NPC_Bordris_Elsethi

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m7_NPC_Bordris_Elsethi 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9 10short OnPCHitMe 11 12if ( GetJournalIndex TR_m7_IC_Maria8 < 10 ) 13 if ( GetDisabled == 0 ) 14 disable 15 endif 16 return 17elseif ( GetJournalIndex TR_m7_IC_Maria8 >= 100 ) 18 if ( GetDisabled == 0 ) 19 disable 20 endif 21 return 22elseif ( GetDisabled ) 23 enable 24endif 25 26if ( OnPCHitMe ) 27 if ( GetJournalIndex TR_m7_IC_Maria8 < 20 ) 28 Journal TR_m7_IC_Maria8 50 29 endif 30 startcombat player 31 set OnPCHitMe to 0 32endif 33 34if ( OnDeath ) 35 if ( GetJournalIndex TR_m7_IC_Maria8 < 40 ) 36 Journal TR_m7_IC_Maria8 40 37 endif 38 set controlQ to -1 39endif 40 41if ( controlQ == 0 ) 42 if ( GetJournalIndex TR_m7_IC_Maria8 == 20 ) 43 if ( GetHealthGetRatio < 0.2 ) 44 set controlQ to 1 45 ForceGreeting 46 endif 47 endif 48endif 49 50if ( TR_Map ) 51 return 52endif 53 54set TR_Map to 7 55 56End