- Home /
Simulating Combat Results
I have a combat system, which is currently pretty much 1 vs 1, but AI vs AI combat. Two empty gameobjects "magically" decrease eachothers HP. No collisions amt, trying to keep it simple until this is resolved.
I'm trying to make/find a system to simulate the combat results or preview the match (which is under progress, no need to answer this), but I have no knowledge of how to approach this simulation thing neither can I find anything via Google. unity+simulate always results to something simulation/rts based results.
Any tips or straight up answers for my problem?
Well, you could have a point system, where it's biased on weapon, health, strength, or something. Then you could add say a random number between say, -20 to 20. Then whoever has the largest number wins. Something along those lines
You should be a bit more specific about the content of your combat system. Since you are asking i guess you have some kind of physics/collision based combat?
Currently it's pretty much two empty gameobject smacking each other when in range. And by smacking, I mean magically decreasing others HP with cooldown on attacks. Trying to keep it simple until this is solved.
Answer by NoDumbQuestion · Apr 28, 2018 at 01:42 PM
@Nikotoh I guess you want something like in Total War campaign auto fight battle.
For simplicity, you count all health, damage, attack speed into a value system. And an AI will have a battle point value.
The one with more points will be more likely to win like in Chess rating system
How the algorithm or correlation data graph work. You can watch your AI battle in real time for 100 rounds then figure out a balance ratio for your simulator to work.
Your answer
Follow this Question
Related Questions
Flocking/ Boids Algorithm: Field Of View in 3D 0 Answers
Simulate canvas button click 2 Answers
Character AI for fightscene 1 Answer
Enemy AI movement problem 1 Answer
How to create a network or internet connectivity in Unity game 1 Answer