Scripts

ColonySeler

Bloodmoon.esm
Variables 9
Local Variables
doonce
combat
nolore
tired
placeonce
startfat
currentfat
targetfat
timer
Source
1Begin ColonySeler 2 3 4;controls NPC actions during quest CO_7 5 6 7float startfat 8float currentfat 9float targetfat 10float timer 11 12short doonce 13short combat 14short nolore 15short tired 16short placeonce 17 18 19if ( MenuMode == 1 ) 20 return 21endif 22 23 24if ( placeonce == 0 ) 25 if ( GetJournalIndex "CO_7" >= 10 ) 26 PositionCell "Raven Rock, Bar" 4480.000 3968.000 15820.000 0 27 endif 28endif 29 30if ( doonce == 0 ) 31 if ( GetJournalIndex "CO_7" >= 10 ) 32 if ( GetDistance Player < 300 ) 33 ForceGreeting 34 set doonce to 1 35 endif 36 endif 37endif 38 39 40 41if ( GetJournalIndex "CO_7" >= 10 ) 42 if ( GetJournalIndex "CO_7" < 80 ) 43 if ( OnDeath == 1 ) 44 Journal CO_7 70 45 StopScript ColonySeler 46 endif 47 endif 48endif 49 50if ( MenuMode == 1 ) 51 return 52endif 53 54if ( combat == 0 ) 55 if ( GetJournalIndex CO_7 == 40 ) 56 set startfat to ( player->GetFatigue ) 57 set targetfat to ( startfat * 0.66 ) 58 StartCombat Player 59 set combat to 1 60 endif 61endif 62 63if ( combat == 1 ) 64 set currentfat to ( player->GetFatigue ) 65 if ( currentfat < targetfat ) 66 StopCombat 67 SetFight 30 68 Journal CO_7 50 69 AIWander 0 0 0 0 0 0 70 set combat to 2 71 ForceGreeting 72 elseif ( tired == 1 ) 73 StopCombat 74 SetFight 30 75 Journal CO_7 50 76 AIWander 0 0 0 0 0 0 77 set combat to 2 78 ForceGreeting 79 endif 80endif 81 82if ( combat == 1 ) 83 if ( timer >= 30 ) 84 set tired to 1 85 else 86 set timer to ( timer + GetSecondsPassed ) 87 endif 88endif 89 90End