Hello,
I'm using Turn Based battles (Active Turn Based Mode), Hex grid.
In the battle Start Event, I intend to use "Place On Grid" node to place all roaming combatants (both NPCs and player group) on an available cell, closest to combatant's actual position. I believe that's what the "Place On Grid" node was meant for. But after experimenting with several setups, I'm still facing following issues(s):
Issue #1: On the first battle turn, Player turn is skipped and NPC AI battle script starts running in never ending loop. I guess, that for some reason Player combatant or NPC combatant (or both) is not placed on the grid propperly, so the AI script does not find any enemy on the grid.
Issue #2: Only available action for Player combatant is "No action/End turn". Turns are being cycled OK (not looping forever as in Issue #1), but NPC AI battle script does not register any target again.
For further information, I tried following setups:SETUP ANPC combatants are spawned by the Battle Event component, which is linked to the nearest Battle Grid. Player group is roaming freely and battle starts when player enters the Battle Event area. Please note this is
not desirable scenario, since NPC conbatants should be pre-spawned and roaming the area already... but this is the only scenario where I'm able to achieve some functionality (in variant #1).
Variant A1: Using "Player Grid Placement" node -> NPC combatant is placed automatically on a free deployment spot, battle usually all works fine, but sometimes Issue
#1 happens. Issue appearence seems to be related to the case, on which cell the Player combatant is placed.
Variant A2: Using "Place On Grid", Use Deployment Cells: Enabled, Place All: Enabled -> No Player combatant is placed/shown at all on the grid and Issue
#1 happens.
Variant A3: Using "Place On Grid", Use Deployment Cells: Disabled, Place All: Enabled -> Player combatant is placed and visible, but Issue
#2 happens.
Variant A4: Using "Place On Grid", Use Deployment Cells: Enabled, Place All: Disabled, Actor: Player group -> Player combatant is placed and visible, but Issue
#2 happens.
Variant A5: Using "Place On Grid", Use Deployment Cells: Disabled, Place All: Disabled, Actor: Player group -> No Player combatant is placed/shown at all on the grid and Issue
#1 happens.
SETUP BNPC combatants are pre-spawned by the Combatant Spawner (single) linked to the nearest Battle Event, which again points to the nearest Battle Grid. There is no combatant spawned by the Battle Event itselves ... probably due to this, battle does not start by Battle Event trigger (combatant enterring the area). This seams bit weird. But, the battle is triggered when player group enters the agro area of the copmbatant, which is OK. This is wanted scenario, but in this setup I'm not able to run the battle, since Issues
#1 and
#2 are happening all the time.
Variant B1: Using "Player Grid Placement" node -> Player combatant is visible, but after manual placement Issue
#1 happens.
Variant B2: Using "Place On Grid", Use Deployment Cells: Enabled, Place All: Enabled -> No Player combatant is placed/shown and Issue
#1 happens.
Variant B3: Using "Place On Grid", Use Deployment Cells: Disabled, Place All: Enabled -> No Player combatant is placed/shown and Issue
#1 happens.
Variant B4: Using "Place On Grid", Use Deployment Cells: Enabled, Place All: Disabled, Actor: Player group -> No Player combatant is placed/shown and Issue
#1 happens.
Variant B5: Using "Place On Grid", Use Deployment Cells: Disabled, Place All: Disabled, Actor: Player group -> No Player combatant is placed/shown and Issue
#1 happens.
Issues occurence also seems to be somehow linked to the Battle grid itselves,
the behaviour is not same on all the battle grids!Thanks for your support!