I've been trying to start a battle (turn based) from an event but I haven't been able to get it to work at all.
I made an event with a Battle Start step and here's the first problem: how do I configure it exactly?
I also have an object in the scene with an Event Interaction set to trigger enter and with the previously made event set.
Now I tried a number of things:
- tried to make a separate gameobject with the battle, assigning it in the event's prefab field and setting up the event's battle step to use that prefab. Didn't work
- Tried to add a battle as a component to the event object, nothing happens and I'm not even sure what kind of start type I'm supposed to set.
So what's the way to do this exactly?
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page
It's probably easiest to set up your battle with the Battle component, using the None start type to disable starting it any other way. Either add the Battle component to the event's game object (where the Event Interaction is attached), or add it to a different game object and use that as an actor in the event (you can select game objects for actors in the event interaction's inspector if they are of type Object without using Event Object or Find Object).
Also make sure your battle is set up correctly, e.g. using an enemy faction - you can't fight an allied faction.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
In the end though the separate object way seems to be better since I need to have some specific coordinates and I can't do that easily with the component
- set Type to Object
- disable Event Object
- disable Find Object
Now you can select a game object in the scene as an actor in the Event Interaction that uses the event. No need to use find object for using a defined game object :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thank you, now I feel like I'm "doing it properly"!
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page