Guest User

Untitled

a guest
Apr 19th, 2023
55
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 1 0
  1. #This is checking the battery stored power ratio, not sure if that's what you were looking for?
  2. if "Battery Group 1" batteries ratio < 0.1
  3. rebuildBatteryGroup1
  4. else if "Battery Group 2" batteries ratio < 0.1
  5. rebuildBatteryGroup2
  6. replay
  7.  
  8. :rebuildBatteryGroup1
  9. rotate "My Rotor" rotor to 0
  10. wait until "My Rotor" rotor angle < 5
  11. turn on "My Grinders" grinders
  12. #Wait until ground down
  13. when count of "Battery Group 1" batteries is 0
  14. turn off "My Grinders" grinders
  15. turn on "My Welders" welders
  16. #Fully built
  17. when "Battery Group 1" batteries build ratio = 1
  18. turn off "My Welders" welders
  19.  
  20. :rebuildBatteryGroup2
  21. rotate "My Rotor" rotor to 90
  22. wait until "My Rotor" rotor angle > 85
  23. turn on "My Grinders" grinders
  24. #Wait until ground down
  25. when count of "Battery Group 2" batteries is 0
  26. turn off "My Grinders" grinders
  27. turn on "My Welders" welders
  28. #Fully built
  29. when "Battery Group 2" batteries build ratio = 1
  30. turn off "My Welders" welders
  31.  
Advertisement
Add Comment
Please, Sign In to add comment