Page 3 of 5
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 11:22 am
by Tykan
The gameplay sequence is a tutorial on movement.
1. Player gets an incoming transmission from AI, pausing game.
2.Player answers.
3. dialogue ui starts
4. conversation ends
The reason this incoming transmission is so important is because each npc has his/her own calling card, pretty much a visual information on who is calling the player.
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 1:12 pm
by Tony Li
What triggers step 1?
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 1:35 pm
by Tykan
The incoming transmission I would thing would be on start because the call would be the first thing the player sees.
After that the incoming transmission for further sequences would be triggered area.
This is the results I am aiming for:
https://giphy.com/gifs/82UKOef1jF8khHI7cu
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 3:08 pm
by Tony Li
Do you want Incoming Transmission to appear on top of the empty dialogue UI? (This is actually easier.)
Or do you want it to show the Incoming Tranmission image for, say, 5 seconds, and then open the dialogue UI?
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 4:03 pm
by Tykan
I would like to show the Incoming Tranmission image for 5 seconds, and then transision dialogue UI
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 4:11 pm
by Tony Li
Then I think you're almost there.
You can have both Dialogue System Triggers on the same GameObject. Let's say the GameObject is named TRIGGER.
Make sure the first Dialogue System Trigger is set to
OnTriggerEnter or
OnStart, depending on whether you want it to run when the player enters the trigger collider or at the scene's start.
Set the Sequence field to:
Code: Select all
AnimatorPlay(ShowAndFade,IncomingTransmission);
SendMessage(OnUse,,TRIGGER)@5
This assumes a few things:
- Your incoming transmission image is named IncomingTransmission.
- It has an animator with a ShowAndFade state.
- The GameObject is named TRIGGER. If the GameObject is named differently, then change TRIGGER to the GameObject's name.
- The second Dialogue System Trigger is set to OnUse, and it's configured to start the conversation.
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 4:38 pm
by Tykan
Would the second Dialogue System Trigger is set to OnUse, and it's configured to start the conversation. Would I need to configure it in the SF Unity UI Dialogue UI? or just the trigger game object?
I'll give it a spin when I get home.
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 4:57 pm
by Tony Li
You don't need to do anything with the dialogue UI. I think it should work the way you want if you set it up exactly like the example that I sent you earlier (
this post).
Re: Alerts like metal gear?
Posted: Tue Jul 10, 2018 11:34 pm
by Tykan
I'm sorry it's the same results
, I tried maybe going into my dialogue UI and tried to change the UI to seen during content, I did notice it was on always from start so I tried to fix it and switch it but alas that did not work
.
I was thinking maybe it was my own custom UI so I tested it out on other provided templates but the results are still the same, I am truly sorry.
Re: Alerts like metal gear?
Posted: Wed Jul 11, 2018 12:11 am
by Tykan
I noticed something, when I set everything up of mine in the example scene you provided to me it worked!