I am making a game which (in short) is an array of quests, in random order.
When the quest_button is clicked on, I want to load a random quest. Now, the randomization is not the issue here.
I thought about using XML:
<?xml version="1.0" encoding="utf-8"?>
<Title>Some Quest</Title>
<Morale>1</Morale>
<Strength>2</Strength>
<Agility>3</Agility>
<Speed>4</Speed>
I can load the file using XML's load function, but how do I access the values? EG: How do I set a global variable named current_speed to the speed defined in the XML file, in this case 4.
Of course, I do not have to stick to XML so if any of you know how to do this either with or without XML, please do help me out on this one.