Some Questions About Making a Sandbox Tycoon

Im currently making a sandbox tycoon like Miner’s Haven and I have 2 questions.
Inform me if im asking in the wrong category.

  1. Would handling item scripts like conveyors, upgraders, and droppers all in 1 script be faster than having individual scripts? However, handling those things in 1 script might be harder compared to having separate scripts for each item

  2. You know how ores have these Updgrade Counters to limit use of upgraders (Example: being able to use a specific upgrader only twice), with what im about to do, i would create a NumberValue with the name of these upgraders and with the value of the upgrade counter they give (Example: 3 upgrades of [Upgrader Name Here] that gives an upgrade counter of 1.5 will equal to a NumberValue with the upgrader’s name and value of 4.5), when you have a lot of ores on your plot with a lot of these NumberValues on them, it really seems inefficient and so im asking if there is a better way to do this?

  1. You don’t need to handle the whole game in one script, as that’d be much harder and less reliable. If that one script breaks at some point, you aren’t going to be able to continue the adventure. Now on the other hand making every upgrade a separate script would be a tedious job. Therefore I suggest you make one script per every aspect of the Tycoon. One script that handles how fast the conveyors are moving, one script for upgrading the tycoon etc. It’s not only going to save you lots of time, but also you’ll be able to change the script very easily.

  2. Not entirely sure what do you mean, but from what it looks like you’re trying to make the ores react to upgrades while having a hard limit of those upgrades. Keep it on mind that you don’t need to put these values inside the ores themselves. Instead you can create a folder per Tycoon, section or cave where you’ll store the values. Then the ores are going to be able to react to these variables stored inside of the folder. It’s going to be much easier to create rather than describing every single ore with values.

Thanks for the answer, for the second question here’s an example of what I mean:
Imagine 2 ores, the first ore is Ore A, and the second ore is Ore B. Ore A would reach an upgrader before Ore B does, by that time Ore A will already have been upgraded and so have that “Upgrader Tag”, while Ore B, which doesn’t have that tag, is still behind Ore A.

1 Like

Bumping this post, question 1 is already answered but im not sure about question 2.