I want to inform the player about an upcoming combatant he is about to face. For me 1 combatant = 1 battle. After defeating a monster/combatant, he is shown a choice dialogue where he can decide if he wants to continue. I would like to inform him what awaits him next. The next battle is spawned by my custom code which is just enabling battle object which I already have in the scene.
Could I possibly get the information about the next combatant from the Battle object in my code? If so, how can I use that object in the Event, in the Show Choice dialogue to provide the user with the info?
E.g. this would store the name of the combatant (first one defined on the Battle component) into the variable nextCombatant:
ORK.Game.Variables.Set("nextCombatant", ORK.Combatants.GetName(battleComponent.combatant[0].id));
battleComponent is the instance of the BattleComponent where the combatant is defined.
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!