I am trying to start a battle with an NPC in the current scene, do a bit of damage, escape, and when returning to the scene later (eg the next day in game), do a bit more damage, eventually reaching some victory condition.
I have an NPC with an "Event Interaction", and "Add Combatant" (with remember combatant checked) components. When the event is invoked it, after a short a dialog, it calls the "Start Battle" node using event object, and specifies the player as a combatant.
When battling, the combatant enters "DontDestroyOnLoad" and, as expected, the object carries over to the next scene(s). When eventually returning to the original combatant scene, it remembers its status values but a new NPC is also spawned, and when battling, spawns a new combatant with its status values set to their initial values (there are now two of these combatants in the scene).
If instead the combatant is explicitly destroyed (after battle or when leaving the scene) it remembers its status values the next time the scene is visited but when interacting with the NPC it will not start battle.
I've read over this post
and this post
however they don't seem quite the same.
I've tried a few other configurations, including using a battle component. but these are the ones that have given me the closest results. Any help is appreciated. Thanks!