Laser Squad [Day 50] – Victory conditions and event handler

One of the topics that I didn’t covered is the victory conditions definition for each scenario and each team, and also the in game event handler.

In the original game there are several ways to finish a scenario: eliminating one team member of the opposite team or all of them, eliminating special tiles on the map, evacuating own units… etc. So I’m massaging my brain cells last couple of days with thoughts how to define these conditions in the existing scenario model.

The other thing is the event handler. In some scenarios you can get reinforcements after a specific number of turns. That must be also defined in the scenario model and checked by the handler every turn.

Currently I’m putting all my thoughts on a paper and thinking about how to implement all these features with as less code as possible, so it will be easy later on to create all these conditions in a level editor.

* * * * *