Begin neil_door_pick_scriptshort doOnceif ( doOnce == 1 ) returnendifif ( GetLockLevel == 0 ) ; Lock has been picked - do something here! set doOnce to 1endifEnd
Begin neil_door_pick_scriptshort doOnceif ( doOnce == 1 ) returnendifif ( GetLockLevel == 0 ) ; Lock has been picked - do something here! set doOnce to 1endifEnd
Begin AT_LockedScriptshort ATChameleonshort ATCrimeCheckshort ATSneakingshort ATRandomshort doOnceshort sneakSkill;'globals: AT_InsanFightif ( doOnce == 1 ) returnendif;'check for lock picedif ( GetLocked== 0 ) ; Lock has been picked - do something here! set ATCrimeCheck to 1 set doOnce to 1endif;'Check for Player sneak and skill then set a random to determine detected or notIf ( ATCrimeCheck == 1 ) if ( GetPCSneaking == 1 ) set sneakSkill to ( player->GetSneak ) set ATRandom to Random, 1000 set ATRandom to ( ATRandom / 10 ) set ATCrimeCheck to 2 Else "AT_Sailor_04"->startcombat, player "AT_Sailor_05"->startcombat, player set ATCrimecheck to -1 endIfendIf;'Determine if chameleon present If ( ATCrimeCheck == 2 ) If ( Player->GetEffect sEffectChameleon == 1 ) set ATChameleon to (ATChameleon + 20 ) endIf set sneakskill to ( sneakSkill + ATChameleon ) set ATCrimeCheck to 3endIf;'Start combat if failed, return if success. If ( ATCrimeCheck == 3 ) If ( ATRandom < sneakskill ) return Else "AT_Sailor_04"->startcombat, player "AT_Sailor_05"->startcombat, player set AT_InsanFight to 1 ;'A global that is used by an accompanying script to continue the fight with other NPCs after the PC passes through the door. set ATCrimecheck to -1 endIfendIf End AT_LockedScript