I have a request for a script that imitates mining operations.
Here is what i need it to do:
1. check if the fleet is near the asteroid body (orbiting it for some clicks)
2. check if the fleet has miner ships in it (checks specific hulls and their numbers)
3. check if player has enough supplies for mining operations (25 per miner) + per day consumption. If he has enough - generate a message 'Mining in progress', else - 'Not enough supplies for mining operations'.
4. generate a random amount of materials at the end of the day if the fleet kept orbiting the asteroid for the whole day
- there are three types of materials that i have already created: basic, rare and exotic
- numbers of generated materials should depend on the amount of the crewed miners in the fleet
- chances of getting rare and exotic materials should be made by a simple randomiser (basic 75, rare 20, exotic 5)
5. a message should prompt once materials are generated and fleet should lose the aforementioned supplies for the mining operations
It would be great to have some skills in 'Industrial' that have impact on supplies consumption rates, chances to get rare materials, number of materials generated etc. I see this as a check in the script that looks for player`s skills and adds bonuses to certain formulas.
All the IDs for hulls and materials i`ll provide later.