XML script help?
I just recently made my first script.xml mod and ran into a little problem, and was hoping someone could help.
The mod opens up the mbases.ini file, and changes the value for:
[MVendor
num_offers = 8, 12
Now, there are lots of bases in the mbases file that have that exact same text. Fortunately, for this mod it only alters Manhattan, which is the first [MVendor entry listed there. So I used this in my script:
<data file="data\missions\mbases.ini" method="sectionreplace" options="1:1">
<section>
[MVendor
num_offers = 8, 12
</section>
<dest>
num_offers = 8, 12
</dest>
<source>
num_offers = 12, 18
</source>
</data>
Now, this works fine because it's the first MVendor entry in the file. However, what if I wanted to change the entry for only Li02_01_Base? It's [MVendor section also has "num_offers = 8, 12". So how can I create a script that will replace the num_offers for Li02_01_Base only, without also replacing the entry for Manhattan (Li01_01_Base)?
Any help would be much appreciated!
The mod opens up the mbases.ini file, and changes the value for:
[MVendor
num_offers = 8, 12
Now, there are lots of bases in the mbases file that have that exact same text. Fortunately, for this mod it only alters Manhattan, which is the first [MVendor entry listed there. So I used this in my script:
<data file="data\missions\mbases.ini" method="sectionreplace" options="1:1">
<section>
[MVendor
num_offers = 8, 12
</section>
<dest>
num_offers = 8, 12
</dest>
<source>
num_offers = 12, 18
</source>
</data>
Now, this works fine because it's the first MVendor entry in the file. However, what if I wanted to change the entry for only Li02_01_Base? It's [MVendor section also has "num_offers = 8, 12". So how can I create a script that will replace the num_offers for Li02_01_Base only, without also replacing the entry for Manhattan (Li01_01_Base)?
Any help would be much appreciated!