Jump to content

Recommended Posts

I am trying to figure out how to add a custom badge to the game, but I am having trouble on getting it working. I want to create a badge like the existing health or hunger badges. Does anyone know any tutorials or example code that might prove useful for my situation?

 

This is my first mod so any help at all will be greatly appreciated.

@BloodHound27, adding on to what Zillvr said above, you can also look through the code in their mods to get an idea on how to make one yourself.

 

You can also have a look at the original badges' code in the following files

 

"..\scripts\widgets\healthbadge.lua"

"..\scripts\widgets\sanitybadge.lua"

"..\scripts\widgets\hungerbadge.lua"

 
Edited by Blueberrys

Thanks for the advice @Zillvr, I will try to get in touch with the Followers All In One mod creator. His mod is very impressive. Also, thank you @Blueberrys, I will try looking through those files and doing some detective work to figure them out.

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...