Jump to content

aiprops.xml and changing item in modular system


aajs

Recommended Posts

Hi I need a bit of help.

I need to modify the aiprops to change the ammo type carried by all aliens.

how do I change the:

<Item name="ammo.alienplasmacell" />

entry to be my new item:

<Item name="ammo.plasma.alienplasmacell" />

I want to change this part but leave everything else vanilla.

<Rank type="Officer">

<Props APs="62" Resilience="150" Strength="60" Accuracy="60" Reflexes="45" Bravery="70" Abilities="Teleportation" />

<Armour kinetic="0" energy="0" chemical="50" incendiary="0" />

<Items killed="Items.WraithOfficerCorpse" stunned="Items.WraithOfficer" />

<BloodHitSprite name="particles/hit_alienblood/hit_alienblood" />

<Equipments>

<Equipment>

<PrimaryWeapon name="weapon.AlienHeavyPlasmaRifle" />

<Belt>

<Item name="ammo.alienplasmacell" />

<Item name="weapon.aliengrenade" />

</Belt>

</Equipment>

</Equipments>

</Rank

Link to comment
Share on other sites

This is a bit of a tricky on. drages may know more than me about this. Thinking about how the mod system works, try the following:

<Rank MODMERGE="update" MODMERGEATTRIBUTE="type" type="Officer"><Belt><Item MODMERGE="deleteall"><Item MODMERGE="insert" MODMERGEATTRIBUTE="name" name="ammo.plasma.alienplasmacell" /><Item MODMERGE="insert" MODMERGEATTRIBUTE="name" name="weapon.aliengrenade" /></Belt></Rank>

EDIT: That should replace the belt code for every Equipment entry for officer rank.

Link to comment
Share on other sites

Got it sec..

To be honest i am always using the fast and direct way because my mod is an overhaul mod..

<Rank MODMERGEATTRIBUTE="type" MODMERGE="update" type="Officer">

<Props APs="62" Resilience="150" Strength="60" Accuracy="60" Reflexes="45" Bravery="70" Abilities="Teleportation" />

<Armour kinetic="0" energy="0" chemical="50" incendiary="0" />

<Items killed="Items.WraithOfficerCorpse" stunned="Items.WraithOfficer" />

<BloodHitSprite name="particles/hit_alienblood/hit_alienblood" />

<Equipments MODMERGE="replace">

<Equipment>

<PrimaryWeapon name="weapon.AlienHeavyPlasmaRifle" />

<Belt>

<Item name="ammo.alienplasmacell" />

<Item name="weapon.aliengrenade" />

</Belt>

</Equipment>

</Equipments>

</Rank

If you want to use only your aiprop.xml at your game, just put this code at every race line;

<AI MODMERGEATTRIBUTE="race" MODMERGE="replace" race="Caesan">

after this you dont need any other modmerge code at the ranks..

Edited by drages
Link to comment
Share on other sites

<Rank type="Officer" MODMERGEATTRIBUTE="type"><Equipments><Equipment><Belt><Item name="ammo.alienplasmacell" MODMERGEATTRIBUTE="name" MODMERGEATTRIBUTESET="ammo.plasma.alienplasmacell" /></Belt></Equipment></Equipments></Rank>

Untested, but if I messed up, it should at least give you the idea).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...