Alerts like metal gear?

Announcements, support questions, and discussion for the Dialogue System.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post 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.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post by Tony Li »

What triggers step 1?
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post 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
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post 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?
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

I would like to show the Incoming Tranmission image for 5 seconds, and then transision dialogue UI
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post 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.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post 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.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post 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).

Image
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post 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.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

I noticed something, when I set everything up of mine in the example scene you provided to me it worked!
Post Reply