Dialogue trigger when hitting a certain value
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
okay, I have set up the code and added the dialogue system trigger. What do I do to link the single click animation parent to the dialogue system trigger?
Re: Dialogue trigger when hitting a certain value
Hi,
Set it up similarly to my Button > OnClick screenshot above. There are 3 steps:
1. Add two elements to the OnClick() UnityEvent by clicking "+" twice.
2. Assign the top Dialogue System Trigger to the first element, and select DialogueSystemTrigger.OnUse.
3. Assign the bottom Dialogue System Trigger to the second element, and select DialogueSystemTrigger.OnUse.
Set it up similarly to my Button > OnClick screenshot above. There are 3 steps:
1. Add two elements to the OnClick() UnityEvent by clicking "+" twice.
2. Assign the top Dialogue System Trigger to the first element, and select DialogueSystemTrigger.OnUse.
3. Assign the bottom Dialogue System Trigger to the second element, and select DialogueSystemTrigger.OnUse.
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
Is there a version if this where instead of activating after 7 clicks, it could be like "the first time you click on this,trigger a dialogue" ?
Thank you so much for the help btw. I know ive asked a lot of dumb questions. I am very grateful to hav3 you help.
Thank you so much for the help btw. I know ive asked a lot of dumb questions. I am very grateful to hav3 you help.
Re: Dialogue trigger when hitting a certain value
Hi,
Glad to help. This one's simpler. You only need one Dialogue System Trigger for it. Please see: How To: Run a Conversation Only Once
Glad to help. This one's simpler. You only need one Dialogue System Trigger for it. Please see: How To: Run a Conversation Only Once
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
just tested it, it doesn't seem to work so I assume I messed up some where
Re: Dialogue trigger when hitting a certain value
Hi,
Are you asking about the one-time trigger or the 7-clicks trigger?
Are you asking about the one-time trigger or the 7-clicks trigger?
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
7 clicks haha
Re: Dialogue trigger when hitting a certain value
Looks fine so far. Make sure to select the OnUse() method for each of the Dialogue System Triggers in the OnClick() UnityEvent:
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
That must be it. Alright. I'll check out and see if it works when i get home.
-
- Posts: 73
- Joined: Tue Jul 25, 2023 1:34 am
Re: Dialogue trigger when hitting a certain value
so the variable is increasing, but it's not triggering the dialogue
also, it's increasing in increments of 2 for some reason
also, it's increasing in increments of 2 for some reason