Hiya guys/gals,
Relatively new to modding, can read xml's etc and have tinkered for years with others but trying something new for a change.
<!-- metal garbage can-->
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate">
<item group="groupGarbage"/>
</lootcontainer>
How do I create a modlet to add the code destroy_on_close="true" to it? I have looked at the code from a modlet all ready about adding loot and destroying on close to the wine barrels but can't for the life of me work out how to add destroy on close for the garbage can that all ready has a loot table. I tried the below but I get a red error saying "EXC Duplicate lootlist entry with name garbage"
<!-- metal garbage can-->
<append xpath="/lootcontainers">
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate" destroy_on_close="true">
<item group="groupGarbage"/>
</lootcontainer>
</append>
SOLVED
<remove xpath="/lootcontainers/lootcontainer[@name='garbage']" />
<append xpath="/lootcontainers">
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate" destroy_on_close="true">
<item group="groupGarbage"/>
</lootcontainer>
</append>
** Posted in wrong forum, sorry, don't know how to delete or move **
Relatively new to modding, can read xml's etc and have tinkered for years with others but trying something new for a change.
<!-- metal garbage can-->
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate">
<item group="groupGarbage"/>
</lootcontainer>
How do I create a modlet to add the code destroy_on_close="true" to it? I have looked at the code from a modlet all ready about adding loot and destroying on close to the wine barrels but can't for the life of me work out how to add destroy on close for the garbage can that all ready has a loot table. I tried the below but I get a red error saying "EXC Duplicate lootlist entry with name garbage"
<!-- metal garbage can-->
<append xpath="/lootcontainers">
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate" destroy_on_close="true">
<item group="groupGarbage"/>
</lootcontainer>
</append>
SOLVED
<remove xpath="/lootcontainers/lootcontainer[@name='garbage']" />
<append xpath="/lootcontainers">
<lootcontainer name="garbage" count="1,2" size="6,2" sound_open="UseActions/open_trashcan" sound_close="UseActions/close_trashcan" loot_quality_template="qualBaseTemplate" destroy_on_close="true">
<item group="groupGarbage"/>
</lootcontainer>
</append>
** Posted in wrong forum, sorry, don't know how to delete or move **
Last edited by a moderator: