Page 1 of 2
[SOLVED]Markup tag not work.
Posted: Mon Sep 14, 2020 12:36 pm
by megadok
Hello again.
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!
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 1:08 pm
by Tony Li
Hi,
Don't use spaces in your markup tags. For example, use this:
not this:
Code: Select all
[ pic = 2 ] Hello, [em 1]friend![/ em 1]
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 1:54 pm
by megadok
I don't leave blank spaces. I attach images.
Thank you.
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 2:31 pm
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?
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 3:33 pm
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.
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 3:36 pm
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.
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 4:11 pm
by megadok
https://ibb.co/xzSHk6y
If you need anything else, let me know
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 4:20 pm
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?
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 4:23 pm
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.
Re: Markup tag not work.
Posted: Mon Sep 14, 2020 4:35 pm
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.