• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How To Make A Fair Battle

Status
Not open for further replies.
Level 6
Joined
May 26, 2012
Messages
177
I have made fully an RPG game which should be released soon.However I have problem in the last scene where the player is a warrior in middle of an army then an NPC cries Charge! and the armies rush against each other.The player has a quest to fight for some time then go on with the quest chain and doing more quests while the battle is going this is because a group of units are spawning every 10 seconds to make the armies go n fighting.BUT the problem is after the battle like 20 minutes,one of the armies become stronger and keeps increasing in number while the other army is decreasing due to the other increase,and after sometime one of the armies is leveled and the spawns are killed immediately and the other is just increasing without doing anything.This stops the quests and ruins the game.So my question is:How to make the battle fair and literally endless in the same time,but also that I could make one army win after the end of all the quests?


+REP and Credits for helpers!!
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Create 2 groups, one for each army.

Every 10 seconds
If number of units in Group A is > Number of Units in Group B
Create units in group B
Else
Create units in Group A.
 
Status
Not open for further replies.
Top