How can i make Strategy Border/Territorial Maps?

Hello! i was searching for answers that are similar to the question in my title but i couldn’t find any answers. I wanted to create a border system similar to Crusader Kings 3 just like the one below:

I’ve seen that one video that talks about the Interactive Map Tutorial:

that is somehow i want my border system to look like but instead of having like black frontiers/borders, i would like to make it different for example instead of having black borders i would have a different color depending on my team, while the other borders also have different colors depending on their team.

That is one question i have in mind and another one is for an instance of a team taking over one city, like this example below:

if that team takes over that city/province, their borders would look like this:

Instead of having like a border between the two separate provinces like the one below

How do i do that kind of thing where if that team takes over a piece of land, their border lines or the frontier lines adjusts on the borders of their claimed lands instead of having a border line between the two separate lands? Like this

Are there any tutorials? or any resources that i can use so that i can accomplish this kind of system? i just wanted to make a system where it does something like that expanding territorial claims and making the borders define the borders of claimed lands.

Any suggestions and help would be appreciated! Thanks!

If your world map is a texture, it would require a material with some parameters(using Lerp) to toggle on/off (0 , 1) the different border and a parameter to change the colours as well.
Inside your bp you would control an enum whether it claimed to x region and set the correct parameter on the material.

If your would map is a top camera view, you will want to place a kind of spline mesh on the level map as border and some function that would control the border properties.
the mesh will need to be shown only by the capture scene camera(there might be other solution as well)

2 Likes

About using the Spline Mesh as the Border and using functions to control its properties, are there any ways that for example i made a border to one whole mesh of land then i want to make a function for claiming the land then making that specific edge of the border to disappear to make the border seemed to be connected by the other land that was claimed, is that possible by hiding a specific part or color that is made by the spline mesh?

You will have to test it out. First test with a simple cube on each land region. Am not too familiar with spline but should be possible.

I would use a strucutre LandStructure that would contain:

  • Enum LandName
  • Enum OwnerName
    (the structure can be used as saving progress to the game instance)

From your BP_Land, EventBegin load the strucutre.

Switch on OwnerName:

  • NoOne > Keep Hidden (can be default)
  • Player X > Show mesh, Set material parameter colours of the mesh spline and show owner name on map

the enum landname can be used as an id for lookup purposes

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.