ScRaT_GER
I suppose the main point of confusion is whether the 'debris' that is returned by the 'find debris' command is a single rock or a container for all the rocks a single big rock has been smashed into. The commands 'has collectible rocks' and 'get debris count' sound very container-ish.
I have the collect rock script working fine which simply loops while the debris has collectible rocks. The break rock script simply loops while the debris exists and shoots it until it has collectible rocks or ceases to exist.
The test mining script simply calls both the break and collect scripts while the debris exists.
- while debris exists
- call collect rock script -- returns when cargo bay full, or no more collectible rocks in 'debris'
- break if cargo bay full
- call break rock script -- returns if 'debris' has collectible rocks, or no longer exists
- loop
It should keep collecting and shooting the debris until all the rocks have been smashed and collected, but it doesn't, hence the confusion. Even after playing around with 'get debris count' I still don't know exactly what it's returning. An updated MSCI manual would be so very useful.
EDIT:
Ok, the break rock script will break rocks, but it never seems to return via the 'has collectible rocks' check, even if the rock it just smashed has clearly turned into a bunch of collectible rocks. It either exits because the debris ceases to exist, or it just sits there firing at nothing until I stop it.
