[SOLVED]Markup tag not work.

Announcements, support questions, and discussion for the Dialogue System.
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

[SOLVED]Markup tag not work.

Post by megadok »

Hello again. :D
I'm testing the markup tag, [panel = #] works very well but for example [pic = #] or [em #] blablabla [/ em #] doesn't work.
I add them to the dialogue text of the node.

What am I doing wrong?

Thank you!
Last edited by megadok on Tue Sep 15, 2020 3:59 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Markup tag not work.

Post by Tony Li »

Hi,

Don't use spaces in your markup tags. For example, use this:

Code: Select all

[pic=2] Hello, [em1]friend![/em1]
not this:

Code: Select all

[ pic = 2 ] Hello, [em 1]friend![/ em 1]
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

Re: Markup tag not work.

Post by megadok »

I don't leave blank spaces. I attach images.
Thank you. :D

Image
Image
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Markup tag not work.

Post by Tony Li »

Why do you have 3 player actors?

Are you sure the correct actor is being used?

Inspect the conversation's properties by clicking on blank canvas space. Set the Actor to Player_habla. Set the Conversant to Vendedor.

Temporarily set the Dialogue Manager's Debug Level to Info. When the conversation starts, look for a Console log like this:

Dialogue System: Starting conversation 'Title' with actor=XXX and conversant=YYY.

Make sure XXX and YYY are correct.

Do the [em1] ... [/em1] tags work? Did you set the emphasis colors in the Dialogue Editor's Database section?
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

Re: Markup tag not work.

Post by megadok »

https://ibb.co/MS1yyzn image 1
https://ibb.co/pdddvqq image 2

You're right, my fault, emphasis works. But [pic=#] dont work...

i have 2 player "now", 1º with Parameter "player" and the 2º withouth parameter Player.

The reason is that if the first one has the "player" parameter activated, it automatically calls the "reponse" submenu, and if it does not have it activated, it calls another submenu.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Markup tag not work.

Post by Tony Li »

Hi,

Why are you showing screenshots of the player actor? The line is being spoken by the Vendedor. Please post a screenshot of the Vendedor actor's Inspector view, with Portrait Textures and Portrait Sprites both expanded.
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

Re: Markup tag not work.

Post by megadok »

https://ibb.co/xzSHk6y


If you need anything else, let me know :D
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Markup tag not work.

Post by Tony Li »

It looks like it's showing exactly what it's supposed to. The current line in your screenshot is "Vendedor: Good morning". And it's showing the Vendedor actor's portrait image. Everything is correct.

What do you want to happen instead?
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

Re: Markup tag not work.

Post by megadok »

With [pic=1] i want to change the portrair from vendedor to woman.
Vendedor portrait is the number 3
woman portrait is the number 1.

In the node of the Vendendor i want to see the woman portrait.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Markup tag not work.

Post by Tony Li »

Add the woman image to the Vendedor's Portrait Sprites list. It will be pic 1. Then set the Dialogue Text to:

[pic=1]Good morning.


If you want to use the Vendedor conversation for several shop keepers, add a Dialogue Actor component to each one, and assign the Dialogue Actor's Portrait Sprite field. Don't use a [pic=#] tag. This will make it use the Dialogue Actor's Portrait Sprite.
Post Reply