Jump to content

Recommended Posts

Hello, so I am trying to make a meter widget akin to Woodie's Wereness meter, except it only raises when my character eats any kind of meat. After it fills, he "transforms" into a feral state with modified stats and such and the meter slowly drains when he's not eating meat at a gradual rate, similar to Wigfrid's inspiration meter.

The actual problem I'm having currently is getting the meter to even show up in-game. I am using graphics and code from the wetness meter as a placeholder until I get the code working, but even after setting up the files in the (seemingly) correct folders the meter just doesn't appear in-game. My widgets folder is under scripts/widgets/inhumanitymeter.lua, while the placeholder graphics were put under Garamonde/exported/inhumanity_meter.

Here are also my .LUA files for the component and widget, if that helps. If anything else is needed, please let me know!

inhumanitymeter.lua inhumanity.lua

Edited by Garamonde

After getting help from poolcool2, I have some entirely new code to share so the files in the first post can be disregarded. However, we still cannot get the widget to appear in-game. I have looked into other mods that do the same thing and I even looked at Woodie's code, but we just can't figure out what it is we need. If anyone could help, I will list you in the credits of my mod! I'm making such good progress on my mod and the code is the only roadblock I'm having.

Thank you!

inhumanity.lua modmain.lua

Edited by Garamonde

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