• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

XML editing - "Value" types

MuffinMan

Refugee
Hi, in the XML files there are often a value="1,10" which is applied against something like tier="2,6" or something like that. Is it possible to have non linear ranges in the current XML?

ie It would be nice to apply a bell curve to the random attributes added to tools and other items. So rather than the whole range being equally possible both the higher and lower ends of it are less likely.

<passive_effect name="BlockDamage" operation="perc_add" value="-.15,.15" tags="turretMelee"/> <!-- random BlockDmg -->

Also is it possible to link the players level to the range, I have only seen "tier" used.

 
Non linear range is possible, you just have to list all the tiers - instead of 1,6 you do 1,2,3,4,5,6

Not sure on the last one but possible?

 
As long as there aren't a lot of values you could always segment your curve into "small chunks" and write them linearly. I never tried doing non linear values for loot but your idea seems interesting.

 
Back
Top