#Need Help With Coding Please

1 messages · Page 1 of 1 (latest)

normal carbon
#

Country System
Purpose:
Manage each country’s data like name, army count, position on the map.

Responsibilities:

Store country name and current army count

Know its position on the map (Vector3)

Provide methods to add or remove soldiers (army count)

Optionally store neighboring countries for pathfinding/valid moves

  1. Soldier System
    Purpose:
    Represent a soldier unit traveling between countries.

Responsibilities:

Hold reference to soldier prefab/model

Move smoothly from origin country to target country

Notify when it arrives (to update army counts)

Destroy itself or return to pool after arrival

  1. Movement System
    Purpose:
    Handle the actual soldier movement logic and animation.

Responsibilities:

Move soldiers along a path (straight line between countries or more complex paths)

Support multiple simultaneous soldier movements

Handle timing/speed of soldier travel

Use coroutines or Update loops for smooth movement

  1. GameManager / Controller System
    Purpose:
    Central control to handle game logic and user commands.

Responsibilities:

Command soldiers to move from one country to another

Decrease army count in origin country and initiate soldier movement

Increase army count in destination country when soldiers arrive

Manage spawning of soldier GameObjects (from prefabs in your assets folder)

Handle player input or AI to select countries and send soldiers

  1. UI System (Optional but Recommended)
    Purpose:
    Show army counts, selected countries, and soldier movement status.

Responsibilities:

Display army counts on or near countries

Highlight selected country

Show feedback on soldier movements (maybe lines/arrows or soldier icons)

  1. Data Initialization System
    Purpose:
    Load countries, army counts, and soldier prefabs into the game at start-up.

Responsibilities:

Find country Game Objects in the scene or from Map folder

Load soldier prefab references

Initialize army counts (maybe from saved data or default values)

#

This what it looks like right now im new to coding and i have the idea just dont know how to do it

#

the maps gridded abit like a 1 tile war stategy game abit like hoi4

#

these are the tank assets aswell mostly all assets are done

#

i have created a gui for the selection at the start and it teleports you to the capital of that country

vagrant flint
#

ountry system 🔥

normal carbon
#

i want it like that like a war strategy game

#

if anyone has any idea just let me know

raven ginkgo
normal carbon
raven ginkgo
normal carbon
#

i was just seeing if anyone had any tips or guidance

raven ginkgo
#

well you listed what you need, google is your best friend

#

and consider brawldev if you're actually serious, he has a good starting point to learning how to script.

proper fulcrum
#

this is way too much stuff for scripting help