Hi,
I have been looking at the actions in the event system but cannot find what I'm looking for.
I am basically trying to start a fight from a cut scene. I have 3 people talking and at the end of the talking a battle starts with one of them.
What would be the best way of doing this?
Thanks
how-do-i-call-a-custom-battle-event-on-entering-a-trigger-collider/
The object used for it must either have a correctly set up Battle component attached (probably best with start type None to prevent it starting in any other way) or be a combatant of an enemy faction.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I am trying to run everything from the same event.
I have my dialogue then set it to start battle, didn't fully understand what you meant after that :)
Thanks
I have dropped him into the scene and added the Battle Component (script). left all the default settings but set the start to NONE.
In the event I have, the event settings I have created a prefab and set the Forest Goblin as the prefab.
After the dialogue step I have added the Start Battle, with the following settings;
Enabled - Yes
Override Node Name - Disabled
Object: prefab
Prefab: Prefab 0
Spawned Prefab ID - 1
When testing it does the conversation etc but at the end it doesn't go to the battle. Anyone know whats up...probably something simple lol
Also, using a Prefab object in the Start Battle step is only used if the prefab was spawned by the event. If it's a game object in the scene (i.e. you've added the prefab in the editor to your scene), you'll need to add it as an actor and use the actor in the step.
You can use scene objects that are already present in the scene as actors by either using the search function in the actor's settings, or add it to the event interaction for that actor.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I think I have managed to get it working! I just need to figure out how to get it to fight in another scene - as I have managed this with my random encounters.. think it may just be adjusting the scene ID?
The Scene ID is used to keep track of battles, i.e. it identifies if a battle has already been finished or not. When returning to the scene, a battle using a scene ID that was already finished wont happen again.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I have just managed to find time to look back into this, work has been a nightmare!!!
I have got it all working, the character goes to another scene and fights, however...
When the battle scene spawns there is another enemy there (even though ts set up to just have 1) this enemy doesn't move or do anything. There is also a second player battle box, but again this does nothing.
I am assuming I have duplicate the spawning but not sure where...
Thanks!!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!