Scripts

TR_m3_NPC_HlarvenBerend

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
noLore
T_Local_NPC
T_Local_NoLore
OnPCHitme
Source
1Begin TR_m3_NPC_HlarvenBerend 2 3short TR_Map 4short control 5short controlQ 6short noLore 7short T_Local_NPC 8short T_Local_NoLore 9Short OnPCHitme 10 11if ( GetJournalIndex "TR_m3_AT_Brother" == 105 ) 12 if ( GetDisabled ) 13 enable 14 endif 15elseif ( TR_m3_Brother_TrialReset > 1 ) 16 if ( CellChanged ) 17 if ( GetDisabled == 0 ) 18 disable 19 endif 20 endif 21elseif ( GetJournalIndex "TR_m3_AT_Brother" >= 75 ) 22 if ( GetDisabled ) 23 enable 24 endif 25elseif ( GetJournalIndex "TR_m3_AT_Brother" >= 70 ) 26 if ( GetDisabled == 0 ) 27 disable 28 endif 29elseif ( GetJournalIndex "TR_m3_AT_Brother" >= 50 ) 30 if ( GetDisabled == 0 ) 31 if ( CellChanged ) 32 disable 33 elseif ( GetAIPackageDone ) 34 disable 35 endif 36 endif 37elseif ( GetDisabled ) 38 enable 39endif 40 41if ( GetJournalIndex "TR_m3_AT_Brother" == 100 ) 42 if ( GetTarget "TR_m3_Madril Berend" == 0 ) 43 StartCombat "TR_m3_Madril Berend" 44 endif 45elseif ( GetJournalIndex "TR_m3_AT_Brother" == 253 ) 46 if ( GetTarget "TR_m3_Madril Berend" == 1 ) 47 StopCombat 48 endif 49 if ( GetTarget Player == 0 ) 50 StartCombat Player 51 endif 52endif 53 54if ( OnPCHitme == 1 ) 55 if ( GetJournalIndex "TR_m3_AT_Brother" == 100 ) 56 Journal "TR_m3_AT_Brother" 253 57 "TR_m3_Llaren Ilvi"->ForceGreeting 58 endif 59 set OnPCHitme to 0 60endif 61 62if ( OnDeath ) 63 if ( GetJournalIndex "TR_m3_AT_Brother" >= 70 ) 64 if ( GetJournalIndex "TR_m3_AT_Brother" <= 100 ) 65 set "TR_m3_Brother_TrialReset" to 4 66 StartScript "TR_m3_AT_Brother_Movement" 67 endif 68 endif 69 if ( GetJournalIndex "TR_m3_AT_Brother" == 100 ) 70 Journal "TR_m3_AT_Brother" 101 71 elseif ( GetJournalIndex "TR_m3_AT_Brother" >= 10 ) 72 Journal "TR_m3_AT_Brother" 250 73 endif 74endif 75 76if ( TR_Map ) 77 return 78endif 79 80set TR_Map to 3 81set T_Local_NoLore to 1 82 83End