Jump to content

How do I add stats to a custom item?


Recommended Posts

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

Link to comment
Share on other sites

1 hour ago, Noisy Pants said:

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

 

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...