Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is checking the battery stored power ratio, not sure if that's what you were looking for?
- if "Battery Group 1" batteries ratio < 0.1
- rebuildBatteryGroup1
- else if "Battery Group 2" batteries ratio < 0.1
- rebuildBatteryGroup2
- replay
- :rebuildBatteryGroup1
- rotate "My Rotor" rotor to 0
- wait until "My Rotor" rotor angle < 5
- turn on "My Grinders" grinders
- #Wait until ground down
- when count of "Battery Group 1" batteries is 0
- turn off "My Grinders" grinders
- turn on "My Welders" welders
- #Fully built
- when "Battery Group 1" batteries build ratio = 1
- turn off "My Welders" welders
- :rebuildBatteryGroup2
- rotate "My Rotor" rotor to 90
- wait until "My Rotor" rotor angle > 85
- turn on "My Grinders" grinders
- #Wait until ground down
- when count of "Battery Group 2" batteries is 0
- turn off "My Grinders" grinders
- turn on "My Welders" welders
- #Fully built
- when "Battery Group 2" batteries build ratio = 1
- turn off "My Welders" welders
Advertisement
Add Comment
Please, Sign In to add comment