Scripts

ColonyFalco

Bloodmoon.esm
Variables 6
Local Variables
nolore
picks
guarded
service
shipwreck
falcotimer
Source
1Begin ColonyFalco 2 3short nolore 4short picks 5short guarded 6short service 7short shipwreck 8 9float falcotimer 10 11 12if ( MenuMode == 1 ) 13 return 14endif 15 16if ( OnDeath == 1 ) 17 if ( GetJournalIndex "CO_12" >= 10 ) 18 if ( GetJournalIndex "CO_12" < 100 ) 19 Journal CO_12 200 20 endif 21 endif 22endif 23 24 25if ( GetJournalIndex "CO_12a" >=10 ) 26; if ( GetDetected "Player" == 0 ) 27 if ( geteffect sEffectPoison == 1 ) 28 if ( GetEffect sEffectBlind == 1 ) 29 sethealth 0 30 Journal CO_12a 40 31 endif 32 endif 33; elseif ( GetDetected "Player" == 1 ) 34; Journal CO_12a 150 35; endif 36endif 37 38if ( guarded == 0 ) 39 if ( GetJournalIndex "CO_12" == 10 ) 40 if ( GetDistance "Player" > 512 ) 41 set guarded to 1 42 endif 43 endif 44elseif ( guarded == 1 ) 45 ForceGreeting 46 set guarded to 2 47elseif ( guarded == 2 ) 48 if ( falcotimer < 10 ) 49 set timer to ( falcotimer + GetSecondsPassed ) 50 else 51 set guarded to 0 52 endif 53endif 54 55if ( guarded < 10 ) 56 if ( GetJournalIndex "CO_12" >= 20 ) 57 if ( GetJournalIndex "CO_12" < 100 ) 58 if ( GetDistance "Player" > 512 ) 59 set guarded to 10 60 ForceGreeting 61 endif 62 endif 63 endif 64elseif ( guarded == 10 ) 65 if ( GetDistance "Player" <= 512 ) 66 set guarded to 9 67 endif 68endif 69 70 71 72End ColonyFalco