Scripts

ColonyBaro

Bloodmoon.esm
Variables 4
Local Variables
nolore
weaponout
saberout
questdone
Source
1Begin ColonyBaro 2 3short nolore 4short weaponout 5short saberout 6short questdone 7 8if ( GetJournalIndex CO_5 >= 70 ) 9 if ( GetJournalIndex CO_5 < 200 ) 10 set questdone to 1 11 endif 12endif 13 14if ( Ondeath == 1 ) 15 Journal CO_5 200 16endif 17 18 19if ( MenuMode == 1 ) 20 return 21endif 22 23if ( GetDisabled == 0 ) 24 if ( ColonyService < 5 ) 25 Disable 26 endif 27endif 28 29if ( questdone == 0 ) 30 if ( GetDisabled == 1 ) 31 if ( ColonyService >= 5 ) 32 Enable 33 endif 34 endif 35endif 36 37if ( questdone == 1 ) 38 if ( GetDisabled == 0 ) 39 Disable 40 endif 41endif 42 43if ( GetDistance Player < 512 ) 44 if ( player->GetWeaponDrawn == 1 ) 45 if ( player->HasItemEquipped "steel saber_elberoth" == 1 ) 46 set saberout to 1 47 else 48 if ( player->GetWeaponType == -1 ) 49 set weaponout to 1 50 else set weaponout to 2 51 endif 52 endif 53 else 54 set saberout to 0 55 endif 56endif 57 58End ColonyBaro