How to traverse the ID list under \libraries\wares.xml?
Now the cheat menu is used to manually enter the ware list. This is inconvenient, and it is cumbersome to MOD compatibility with other authors.
[Question]How to traverse the ID list under \libraries\wares.xml?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 6
- Joined: Thu, 23. Mar 17, 19:14
-
- Posts: 73
- Joined: Wed, 5. Dec 18, 07:04
Re: [Question]How to traverse the ID list under \libraries\wares.xml?
I'm going to start by trying to figure out what you're asking, are you asking how to point to a certain ware with an xml patch? or did you have something else in mind?
If by chance you are trying to point to a certain ware in an xml patch, you can do this
If by chance you are trying to point to a certain ware in an xml patch, you can do this
Code: Select all
<add sel="wares/ware[@id='wareid']"> ... </add>
<replace sel="wares/ware[@id='wareid']"> ... </replace>
<remove sel="wares/ware[@id='wareid']"> ... </remove>
-
- Posts: 6
- Joined: Thu, 23. Mar 17, 19:14
Re: [Question]How to traverse the ID list under \libraries\wares.xml?
Thank you for your reply.
What I want to learn is how to get ware list of commands when making MOD.
So i don't have to create $warelist myself and add wares.
Now, if EGO updates, or other authors make ware、ship MODs. I need to add the ware ID manually in $warelist by myself.
What I want to learn is how to get ware list of commands when making MOD.
So i don't have to create $warelist myself and add wares.
Now, if EGO updates, or other authors make ware、ship MODs. I need to add the ware ID manually in $warelist by myself.