What I ultimately want, is just to be able to pull a number from my xml, and have it be used as an integer value in a different fsm, as such, "29" is the value i want to assign to my integer (the sprite value bit was just me trying to explain what it was used for that isn't in my xml anywhere), I only need to pull the number itself as a value, but when I try to do that, the int remains the same, and doesn't change its value.
If I could try to explain how I wanted it to happen, it'd be something like, the information is pulled from my xml, and my fsm moves into a state that displays the text that was pulled, clicking down on the mouse will cycle back through the xml to get the next string of text, and it keeps doing that until it reaches the conversations end
What I want to have happen additionally, is for my fsm to also pull an int value so from
<text name="Eric" sprite="29" id="something something batteries"></text>
"Eric" would be displayed as a string, as would "something something batteries" and both would be converted onto a piece of gui text. I want to also take "29" and have it be pulled as an integer to be used in an integer compare, so that it checks, and when it confirms that the new int value 29 is being assigned to is, 29, it moves into a new state that displays the character's sprite.