How to have a grid battle without placing player on grid and only active group member combatants from selection?
So basically I want no player in scene just chosen active members vs enemy members on grid. I'm trying to have a grid battle type game without using the player as a combatant. I only want to spawn active members and place them on the grid.
The Problem / Bug : If I hide the player member from active group, it doesn't show up on combatant selection list to place on grid , which is perfect but once I place all non player combatants on grid the player also spawns after player grid placement node is successful.
Things I tried:
-I can't find how to make player an Inactive member so it can't be chosen in grid combat selection and won't spawn as a battle combatant
-I tried hiding player member using hide member node, which works only to remove player from combatant selection list.
So, to have a non-battle player (e.g. like in pokemon), you need to:
- add the player combatant
- remove the player combatant from the battle group
- hide the player combatant
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I only have 2 events in the game right now , start game event and the battle start event.
The scene only has a Grid and Battle component set to real time, and of course a gamestarter.
Start Game Event
https://drive.google.com/file/d/1PA-ewEqRAci-OfCpAuhtdp83IZFEQ4gd/view?usp=sharing
Battle Start Event :
https://drive.google.com/file/d/1ooU-r_pCV-E_5MuqviRlJgLPLhLLxkua/view?usp=sharing
Start Game Event
Battle Start Event :
This setup just gets bugged, when I use combatant selection to place the warriors on the grid, the player is spawned at the battle component position in the scene and the warrior is spawned on the grid, but the thing is that the warrior is now set to Player and the Player prefab is set to just a combatant.
So, do the hiding/removing in the start event, not in the battle start event. This only needs to be done once :)
In case you want to check out an example - the mission grid battles project uses such a setup.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!