Scripts

holmarScript

Tribunal.esm
Variables 8
Local Variables
elfdeath
disable
nolore
doonce
doonceB
doonceC
passedOut
timer
Source
1begin holmarScript 2 3short elfdeath 4short disable 5short nolore 6short doonce 7short doonceB 8short doonceC 9short passedOut 10float timer 11 12if ( getjournalindex "MS_HolyElf" = 160 ) 13 set timer to ( timer + GetSecondsPassed ) 14 if ( timer >= 3 ) 15 holmar->stopcombat 16 endif 17endif 18 19if ( MenuMode == 1 ) 20 Return 21endif 22 23if ( disable == 1 ) 24 Disable 25 return 26endif 27 28if ( GetJournalIndex "MS_HolyElf" == 0 ) 29 return 30endif 31 32if ( GetJournalIndex "MS_HolyElf" == 200 ) 33 return 34endif 35 36 37if ( doonceB = 0 ) 38 if ( GetJournalIndex "MS_HolyElf" == 100 ) 39 Disable 40 set doonceB to 1 41 return 42 endif 43endif 44 45if ( doonceC = 0 ) 46 if ( GetJournalIndex "MS_HolyElf" == 110 ) 47 Disable 48 set doonceC to 1 49 return 50 endif 51endif 52 53if ( GetJournalIndex "MS_HolyElf" <= 10 ) 54 return 55endif 56 57if ( GetJournalIndex "MS_HolyElf" = 30 ) 58 return 59endif 60 61if ( OnDeath == 1 ) 62 if ( elfdeath == 1 ) 63 Journal "MS_HolyElf" 120 64 high_pockets->AiWander, 128, 5, 0, 60, 60 65 else 66 Journal "MS_HolyElf" 140 67 high_pockets->AiWander, 128, 5, 0, 60, 60 68 endif 69endif 70 71if ( gethealth < 0 ) 72 return 73endif 74 75if ( getfatigue < 1 ) 76 holmar->SetFatigue 0 77endif 78 79 80if ( GetJournalIndex "MS_HolyElf" == 130 ) 81 holmar->SetFatigue 0 82endif 83 84if ( passedOut = 0 ) 85 if ( getfatigue < 1 ) 86 if ( doonce == 0 ) 87 if ( getdeadcount high_pockets < 1 ) 88 if ( GetJournalIndex "MS_HolyElf" != 130 ) 89 if ( GetJournalIndex "MS_HolyElf" != 150 ) 90 high_pockets->AiWander, 128, 5, 0, 60, 60 91 high_pockets->stopcombat 92 high_pockets->setfight 30 93 Journal "MS_HolyElf" 160 94 set doonce to 1 95 endif 96 endif 97 endif 98 endif 99 endif 100endif 101 102End