I have an XML file that looks like this.
<?xml version="1.0" encoding="UTF-8"?> <npc name="rose"> <stage id="1"> <part id="1"> <texttoread>Hey there!</texttoread> <type>Normal</type> <setstage>1</setstage> </part> <part id="2"> <texttoread>Have a good day!</texttoread> <type>End</type> <setstage>1</setstage> </part> </stage> </npc>
Now if I added more things to that, how would I get the information in the <texttoread>, <type>, and <setstage> tags if I have the npc name, the stage id, and the part id?
Develop games in your browser. Powerful, performant & highly capable.
You can do this with the standard XLM plugin, see these tutorials:
construct.net/en/tutorials/how-to-read-an-xml-and-make-your-game-talk-518
construct.net/en/tutorials/xml-parsing-209