Hello!

Currently, the battle is started by trigger machine on contact.
When I start a battle with Start Battle on the schematic and the battle is over, the object disappears and I cannot start the battle again.
How can I prevent the object from disappearing?
How can I make a battle occur repeatedly, like a random battle area battle?
  • If the Start Battle node actually uses a Battle component set up on a game object, make sure that Battle component is set up accordingly.

    E.g. if you want the battle to be repeatable, disable Use Scene ID in the component's settings.
    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!
  • Thank you for your prompt reply.
    I am now able to repeat the battle, but when I return to the original scene after the battle, the battle starts immediately, probably because I called it with trigger enter.
    When I return to the original scene, the battle starts even if Boxcollider2d is turned off.
    Is it possible to make it so that the battle does not start until I trigger exit once after the battle is over?
  • Well ... that's what Use Scene ID is used for :)

    You can reset the scene ID via schematics, e.g. in your battle end schematic after returning to the previous scene use a Set Battle Scene ID node to remove the scene ID.
    The scene ID being set will prevent the battle from starting again when returning to the scene, and afterward remove it so that it can start again.

    There are also settings to automatically remove scene IDs after a defined number of scene changes. This can be set up in UI > Save Game Settings in the ORK Save Settings.

    Alternatively, you can use custom conditions on your battle/machines to prevent starting, e.g. setting a global variable or game state and checking for that in the component's conditions.
    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.