Use XML for dialogue

Get help using Construct 2

Post » Wed Jan 08, 2014 9:13 pm

Hi, my name is Walter Veneros and I'am workin in a point and click game, but use the text from XML.

My problem happen when use the XML construct use all text assignment.

For example i have dialogo=""1"", dialogo=""2"",dialogo=""3""
I want only take the text from 1, after take from 3.
But construct take all the text if I use Append text, if I use set text I only obtained the text from 3

here is a little test.


XML parsing example

HELP!
B
15
S
3
G
4
Posts: 32
Reputation: 3,655

Post » Tue Jan 14, 2014 1:25 am

I'm looking for help on the exact same problem. Have you had any luck so far ?
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Jan 15, 2014 1:53 pm

I found the solution!

In set text you must write like this.

XML.StringValue("/GUION/NIVEL/BLAXY/DIALOGO[@num=""18""]") & newline

in my XML i write
<GUION>
<NIVEL>
<BLAXY>
<DIALOGO num="18"></DIALOGO>
(YOU CAN CHANGE THE NUMBER TO CALL THE SPECIFIC LINE )
</BLAXY>
</NIVEL>
</GUION>
B
15
S
3
G
4
Posts: 32
Reputation: 3,655


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, marcoscodas and 14 guests