0
Answered

Actions Do Not Fire for Choices?

Jacob Falling 5 months ago in Dialogue updated by Marti (Lead Developer) 5 months ago 8

Hello!

It does not seem that any actions placed on choices in choice groups fire, regardless of whether they are set to be before dialogue, after dialogue, or simultaneous. Any actions on the Choice Group dialogue (i.e.the question) which are set to fire after the dialogue do not fire until after the choice is made. Any actions set on the the dialogue answers after the choices fire after the choice is made.

In other words, there seems to be no way to perform an action concurrent with the actual choices in a dialogue.

My use case: I want to set a camera on the person asking a question when the question is asked, but move to the player (or a wide shot) for the answer selection.

Thank you for all of your work. GC and the Dialogue tools are very strong tools!

Unity version:
2018.4 LTS
Game Creator version:
1.1.7

Hi Jacob, I do exactly this in one of my games. This game is not currently on 1.1.7 but changing the camera to point at the character/player talking is woking. As I said, I haven't tested it with the latest release, but I understand it is what you are trying to do, or?

But just to be clear, I have two fixed cameras set up, one points to the character and one points to the player. The player one is parented with the player so it is always where it should be, no matter where the player goes.

I swap between them using an Action and set to Simultaneous. But as I said I haven't tested on the current version.

Hello Professor!

The above works fine when it's set on actual dialogue lines.


Try setting a camera to change after the dialogue of a choice group. For me, this fires after the choice is made, rather than changing the camera after the choice group dialogue line and before the choice is made. The dialogue system seems to consider the choice group a dialogue line inclusive of the choices.

In other words, I can't get actions to fire here:

Thank you for responding!

Okay, that actually works for me, the Camera is changed at the display of the choice group, so perhaps it is a version related issue. If I get time, I will update my versions and see if the problem occurs.

+1

Hm... seems more likely it is my error. I may have introduced contradictions between actions. I will clean it up and try again.

Thank you!

Answered

Thanks Paul for driving the questions. Jacob, I'm closing this thread. If you encounter any issues, feel free to reopen it. Also, make sure you're on the last Dialogue update, as we fixed a bug that under certain circumstances, made conditions skip.

I will try this again with a fresh dialogue. For now, I rewrote conversations to avoid the need for actions on the choices themselves. I needed to restructure many of the before/after/simultaneous decisions anyway.


I honestly expected this to be a design decision/limitation anyway, since those choices are multi-partite -- how would you handle action contradictions between the dialogue choices since they're all simultaneously displayed?


Appreciate the help from you both!

Contradictions should be handled by you, the developer. The Dialogue module simply displays the choices based on the conditions you input. Assuming or making smart decisions wouldn't really benefit anyone, since it would be taking control from you. Hope this makes sense.