BourgeoisBanana Posted October 10, 2021 Share Posted October 10, 2021 Hi, having some trouble setting up (what should be) a fairly simple script. I'm aware of tutorials to have a protectron start an AI package after being activated on a computer, that's all fine, but I'm trying to get a protectron to turn on at a certain time of day, run a package for a few hours, and then go back to the pod. So basically:12pm: Pod Opens. Protectron Starts Package.12pm - 12am: Protectron patrols.12am: Protectron goes home. Pod closes. I tried adapting the generic protectron terminal script but can't get a single step of this to work. Either the protectron patrols but the pod doesn't open/close, or the protectron is unconscious all the time, or he patrols endlessly without returning to base. Here's the script I've tried: scn SHOfficerWattzSCRIPT ; script for Officer Wattz Patrol short state ; 0 = off ; 1 = active ;========================================================= Begin OnLoad If state == 0 SHOfficerWattzREF.setUnconscious 1 SHProtectronPodOfficerWattz.SetOpenState 1 evp else SHOfficerWattzREF.setUnconscious 0 SHProtectronPodOfficerWattz.SetOpenState 0 evp EndIf End Begin OnPackageStart SHProtectronPatrol If state == 0 set state to 1 Activate SHProtectronPodOfficerWattz.SetOpenState 1 SHOfficerWattzREF.setUnconscious 0 endif end Begin OnPackageEnd SHProtectronPatrol If state == 1 set state to 0 Activate SHProtectronPodOfficerWattz.SetOpenState 0 SHOfficerWattzREF.setUnconscious 1 Activate endif end Begin OnPackageStart SHProtectronNotActive If state == 0 set state to 1 Activate SHProtectronPodOfficerWattz.SetOpenState 1 SHOfficerWattzREF.setUnconscious 1 Activate endif end Begin OnPackageEnd SHProtectronNotActive If state == 1 set state to 0 SHProtectronPodOfficerWattz.SetOpenState 0 SHOfficerWattzREF.setUnconscious 0 Activate endif end Has anyone tried to accomplish something similar? Any luck? Would really appreciate it :) Link to comment Share on other sites More sharing options...
Recommended Posts