Is it possible to pause a turn based battle system?

I want to start dialogue in the middle of combat (pausing/stopping the battle) and resume it after the dialogue is finished.

Currently I'm running into problems where enemy combatants will move and attack while the dialogue is running.

This is some code that I currently use for trying to pause combat but none of it is doing what I want.

image
  • There isn't really a way to pause a turn based battle.

    How's that dialgoue or cutscene started?
    The easiest way would be to have them as part of the battle, e.g. as (battle) turn start/end schematics or special abilities that do this dialogue/cutscene.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited May 10
    The dialogue is started in code. So you mean that I would have to have some dummy combatant exist that would start these certain events? If this is the case then is there a function that sets the current turn in a battle?
    Post edited by AustinGreear on
  • You can also have those started by the player and e.g. part of a turn start schematic, or a battle turn start schematic in your battle system to be independent of the combatant).

    E.g. use a general battle turn start schematic in your battles that checks for certain conditions and start another schematic with your dialogue/cutscene based on that.
    Like, a global variable being set to something, checking the battle turn, etc.
    You can just extend that schematic with more and more such cutscenes based on different conditions, e.g. using the same global variable having different values (e.g. string variable).

    ORK.Battle.Turn gives you access to the battle turn, you can also change it there.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.