Generate a dictionary from XML

Get help using Construct 2

Post » Mon May 13, 2013 5:05 am

I am attempting to recreate Cards Against Humanity in Construct2. I am currently arranging an XML file where it will store all the white cards, and I have a system for when a card is drawn it will be able to grab a random dictionary entry. The problem is that it seems I cannot generate dictionary entries without manually entering each individual one, and if that turns out to be the only way, I may as well say good bye to this project.

The way I want it to be is for each whitecards/card node, I want it to generate a sequential set of dictionary entries that turn out like "Key:W(Number assigned)" with the value of it being the corresponding text taken from "whitecards/card/text/".

The XML file is not in a complete state, but it is usable here:
I would greatly appreciate any help.

Edit: Broken link fixedgamemaster2572013-05-13 06:46:47
Posts: 2
Reputation: 479

Post » Mon May 13, 2013 8:08 am

You should play around with an event like:

XML : "For each node" => Dictionary : "Add Key"
Posts: 32
Reputation: 1,166

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests