GunbunnyFuFu
December 29th, 2019, 20:31
Good day!
I'm working on a Savage Worlds module in XML, and am trying to get some items ordered like they are in the book I'm creating the module from. For example, the book has the following Shield types: Buckler, Large Shield, Medium Shield. I'd like the order to go Buckler, Medium Shield, Large Shield. It appears it's ordering the items alphabetically on the <name> attribute...is there anyway to do this? For example, I've tried to name the XML attributes in the following method:
<a_buckler>
[info about Buckler]
</a_buckler>
<b_medium_shield>
[info about medium shield]
</b_medium_shield>
<c_large_shield>
[info about large shield]
</c_large_shield>
With no changing of the order. Is there a way to force the ruleset to order things based off Attribute name (ie <a_buckler>) instead of the name attribute (ie <name type="string">Buckler</name>?
Thanks!
GB
I'm working on a Savage Worlds module in XML, and am trying to get some items ordered like they are in the book I'm creating the module from. For example, the book has the following Shield types: Buckler, Large Shield, Medium Shield. I'd like the order to go Buckler, Medium Shield, Large Shield. It appears it's ordering the items alphabetically on the <name> attribute...is there anyway to do this? For example, I've tried to name the XML attributes in the following method:
<a_buckler>
[info about Buckler]
</a_buckler>
<b_medium_shield>
[info about medium shield]
</b_medium_shield>
<c_large_shield>
[info about large shield]
</c_large_shield>
With no changing of the order. Is there a way to force the ruleset to order things based off Attribute name (ie <a_buckler>) instead of the name attribute (ie <name type="string">Buckler</name>?
Thanks!
GB