I am creating a rpg item system, and i am cofigure the attributes with xml, but now i have a problem, if i call the item with id=1 in the script, it works, but if i call other id's, do not work, what this happening? Look some images below who i had printed (sorry for my english )
(open the image in a new tab to see it better)
Develop games in your browser. Powerful, performant & highly capable.
Hi, the first thing I notice is that your XML is not valid.
You should have only one root element and you have three (Sword, armor, potion). It should look like:
Also these are valid ways of closing an element:
but this isn't:
oh, thanks, i didnt pay attention to it, thanks again.