- Joined
- Aug 1, 2016
- Messages
- 21
- Reaction score
- 1
- First Language
- English
- Primarily Uses
So here is the situation: I am currently creating a game with a "large scale" military theme, and I am using the GTBS engine for the grid based battles. Although the problem I currently am faced with I THINK is done in the Troop management and I don't think should be directly involved with GTBS (but please tell me if I'm wrong).
What the problem looks like, is that There are a handful of enemy "armies" that you must defeat, and along with them are scattered camps and fortresses that are "buildings". What I want is that if there are 3 armies and 2 buildings, then the player will win after killing the 3 armies, and destroying the buildings are optional. Although the specific way I have it set up is that buildings are technically also units that just can't move and have only short ranged support abilities. Although battles won't end until every one is dead.
I tried several different ways of using conditions and switches to check for how many armies are still alive and to end when it notices that all of them are dead, but I just could not get this to work. I read up on some of the Forums and I've seen this topic a few times but I never found anything about setting this condition with multiple enemies.
I was led to believe I could do this just using conditions and switches with in the Troop Management or Common Events, but I do wonder if this is something that has to be handled in the GTBS script.
What the problem looks like, is that There are a handful of enemy "armies" that you must defeat, and along with them are scattered camps and fortresses that are "buildings". What I want is that if there are 3 armies and 2 buildings, then the player will win after killing the 3 armies, and destroying the buildings are optional. Although the specific way I have it set up is that buildings are technically also units that just can't move and have only short ranged support abilities. Although battles won't end until every one is dead.
I tried several different ways of using conditions and switches to check for how many armies are still alive and to end when it notices that all of them are dead, but I just could not get this to work. I read up on some of the Forums and I've seen this topic a few times but I never found anything about setting this condition with multiple enemies.
I was led to believe I could do this just using conditions and switches with in the Troop Management or Common Events, but I do wonder if this is something that has to be handled in the GTBS script.

