When getting close to turn based and a person or a battle triggering collider is triggered, I have a few questions:

1. when we interact with that person. it puts us in battle; it can bring random additional enemies from nowhere. But it does not send those who are nearby into battle. Is there a way to have a range that gets any close enemies into battle?
2. Or suppose there is a specific trigger that initiates a battle, with a few people whose names and chances (%) are pre-defined and one or many come to turn based on the probability percentage previously set.

Can it be like I interact with an enemy; it starts turn based with me and brings all nearby enemy (based on for example, distance) against me in the turn based. Say within a radius or 5m
  • edited June 2023
    My 2cp @MehranGul

    1a. When you say "brings random additional enemies from nowhere" I am not clear on if you mean that's good or accidental. They are probably coming from the Battle component game object in the scene or a schematic.

    1b. In the Makinom editor go to Battles --> Battle System --> General Settings --> Auto Join Settings to set global ranges for nearby enemies to join. You can override this with the Battle object in a scene and in combatants and stuff too I think, so that not all battles have to use this global setting.

    2. The Battle component game object in a scene can do these things (back to 1a.).
    It has settings for including various combatants in the battle that can be assigned in many ways, with % chances, difficulty level checks.
    Also you can configure "Combatant groups" to spawn in that Battle game object in the scene, in Makinom--> Combatants --> Combatant Groups. Those groups can have various checks and % chances and stuff too.

    On your last question, yes.

    A battle can also be started from a variable change, and use that variable change to select combatants.

    You can use Battle Start schematics that add combatants that way too. Should clarify Battle Start schematic is not the same as Start Battle schematic node,

    Maybe helpful
    https://orkframework.com/guide/documentation/battles/adding-battles-to-scenes/
    https://orkframework.com/guide/tutorials/3d-rpg-quickstart/14-random-battles-2/

    The 2D tutorials have some good info on this.

    https://orkframework.com/guide/tutorials/2d-grid-battle-rpg/

    https://orkframework.com/guide/tutorials/2d-grid-battle-rpg/15-battle-selection-interaction/

    That one has it where you talk to an NPC to start the battle
    Just because it is using grids in that, it will still work for starting any battle, doesn't have to start a grid battle the principle is the same.









    Post edited by GeneralK on
  • Battles > Battle System > General Settings has the Auto Join Settings for that.
    You can optionally have combatants near a starting battle join in on the battle, and also have combatants that move close enough during a battle join the running battle.

    Individual Battle components can also override this in their Auto Join settings, e.g. if you only want this for specific battles and not for all.
    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.