Bladestorm Games
Refugee
Hey guys, In my custom mod the setting is more focused on melee and primitive ranged weaponry (Bows, Spears) so I'm looking for ideas to make removing Guns/Ammo/Explosives/Modern Weaponry from all Loot Containers, as well as their crafting components (Rifle Parts, Pistol Parts, etc)
In "loot.xml" would I want to look through every lootgroup, and note down its Name tag, then in my mod's "loot.xml" I'll access that lootcontainer and do necessary edits?
Or perhaps there is a way to access every loot container and, for example, if it had:
<item name="resourceGunPowder" count ="VALUE HERE"/>
I could append/set the count to 0, or remove that item from Loot Containers that have "resourceGunPowder".
By "access every loot container" I'm thinking something simple like this:
if lootgroup contains "resourceGunPowder", then count = 0
or
if lootgroup contains "resourceGunPowder", then remove resourceGunPowder from lootgroup
Thoughts? Suggestions? Thanks : )
In "loot.xml" would I want to look through every lootgroup, and note down its Name tag, then in my mod's "loot.xml" I'll access that lootcontainer and do necessary edits?
Or perhaps there is a way to access every loot container and, for example, if it had:
<item name="resourceGunPowder" count ="VALUE HERE"/>
I could append/set the count to 0, or remove that item from Loot Containers that have "resourceGunPowder".
By "access every loot container" I'm thinking something simple like this:
if lootgroup contains "resourceGunPowder", then count = 0
or
if lootgroup contains "resourceGunPowder", then remove resourceGunPowder from lootgroup
Thoughts? Suggestions? Thanks : )