Need Some Help With A Turn Based Combat System

Hello! I’m currently doing my final assessment for my games course and I’m a little stuck on a process I’ve been trying to figure out over the past few days. I know many ways to do turn based combat but I want to make a clean system for ID’ing what enemy you may run into in the overworld (Main scenes) of the game then once you get transported to the fight scene the game will find that ID and then instantiating a prefab in the “enemySpawnLoc” lets say for example. Without explicitly giving me the answer because I still want to learn, what are examples of ways to do this? Because having a scene for each individual enemy to then go to is really messy and wastes space so I want a clean way to do this. I know its done via ID and Instantiation with Prefabs but in terms of the syntax itself I’m a little rusty on Instantiation.

Thanks!

List, Enemy[ ]?

You can for example Add component Enemy on your prefab and OnEnable or in some Init method setup all you need ofter initiation

A list would work as @MartinMa said or some sort of dictionary mapping id/names to prefab.

You can pass all the prefabs directly to the script that will be in charge of spawning everything or you can use “Resources.Load” if you have a lot of different types of enemies, there is an example there: how to instantiate prefab with Resources.Load ? - Questions & Answers - Unity Discussions

Ah hec i forgot about scriptable objects ^^; thank you