I’m in the process of designing a paradox-style grand-strategy game with a large map containing thousands of provinces. I plan on creating the map in a similar style to Paradox; by having a .bmp color file showing all of the games provinces, each with a unique RGB color and code that the game will reference when clicking on the map for the player to interact with the subsequent province. This will be applied over my heightmap as a texture, and when the player clicked on a particular part of the map, the game will check a dictionary with all the RGB codes and their respective provinces and call back with one based on the color of the region the player clicked on.
This should give you an idea of what I’m talking about
Each of these provinces (particularly those on land) will have their own script/text file attached to each of them that displays their current stats (such as development/population/buildings ect.) in addition, whenever the player clicks on the map, the game will check the area he clicked on and what RGB code the province he clicked on had. This will be used for a variety of the games interactions, such as moving armies and building upgrades among many other things.
Unfortunately, I’m not particularly sure how I should go about this. I have around a year of experience working in unity, but most of that is with scene/world creation and basic scripting. I’ve been trying to find info on how people suggest creating this sort of system, but much of it is outdated or confusing.
Can anyone here walk me through step-by-step what I’ll need to do to create such a province system in Unity using C#? What else will I need to know in order to get this working? Specifically, how can I get the game to check the color code for the part of the map they clicked on, and call back to a dictionary file to reference it’s code their and it’s respective province to then allow the player to interact with said province?