How to implement combat turns

anonymous_user_aa967a7a
Thu, 15 Jun 2017 13:42:08 +0000
Audio

Hi, I’m a student who is currently learning how to work with the engine. I have been developing an isometric turn based rpg game, inspired by the first fallout games.
For now I have finished to implement the grid, the movement system, the inventory system and the dialogue system. All basic stuffs, they’re not pretty but works as intended.

But now I need help with the combat system. In particolar I can’t understand how to define turns of the pawns I’m using. I reached the defining of the combat order of my pawns, but then I don’t know how to define logically a turn.

I tried using events and event dispatchers, but I don’t know how to tell my turns manager to wait for the event “turn finished” of the pawn to resume the cycle of pawns and start the event “start turn” to another.

If some code is needed I can provide it right away.

5 posts - 1 participant