• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

How do I add stats to a custom item?

Noisy Pants

Refugee
I made a mod that goes inside the helmet, the localization file works fine regarding describing what it does yet there isn't any stats available for the mod. I've been digging looking at other mods and such.... I haven't come up with anything - please help. The stats would show the nerdy glasses and lucky goggles stats.

goggles.jpg

 
I made a mod that goes inside the helmet, the localization file works fine regarding describing what it does yet there isn't any stats available for the mod. I've been digging looking at other mods and such.... I haven't come up with anything - please help. The stats would show the nerdy glasses and lucky goggles stats.

View attachment 19669


Hi Noisy Pants

You must add a line like this to show you the stats:
These are the lines of both goggles.

<property name = "DisplayType" value = "clothingNerdGlasses" />
<property name = "DisplayType" value = "clothingAviatorGoggles" />

You can create your own custom line by adding the stats of both goggles.

Example:
<property name = "DisplayType" value = "clothingNerdviatorGoggles" />

Then check ui_display.xml and see how both goggles are.
You must create your own ui_display file to show you the stats of both.
Regards

 
Back
Top