@XML_TOOLS Version "2.0"
#@ADD_INSIDE_NODE ElementName "Particles"
0
45
Head
glass_break
@ADD_INSIDE_NODE ElementName "OSD" Files "BINACJBOCharacter-van.xml"
0
30
Pelvis Chest Neck Head LeftShoulder LeftArm LeftWrist LeftFist RightShoulder RightArm RightWrist RightFist
Unblockable
0
10
KnockdownBody
0
0
0
#@ADD_INSIDE_NODE ElementName "Attacks"
31
44
Chest Neck LeftShoulder RightShoulder
Unblockable
0
5
HitBody
40
0
0
#@ADD_INSIDE_NODE ElementName "Animation"
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
#@REMOVE_NODE ElementName "Objects" ParentElementName "Oni" Files "BINACJBOCharacter-van.xml"
#@COMMAND "-?"
#@CUSTOM_CODE Files "BINACJBOCharacter-van.xml"
var myBuilder = new JSXMLBuilder();
myBuilder.load($xmlData);
var elements = myBuilder.elements;
for (var i = 0; i < elements.length; i++) {
if(elements[i].name=="CHAR" && elements[i].attributeString==" Id=\"11565\""){
elements[i].childElement("OSD").childElement("Weapon").text="MyAwesomeOniWeapon";
break;
}
}
$xmlData=myBuilder.generateXML(); // update the global variable with the new XML