Project Zomboid

Project Zomboid

73 ratings
StatsAPI
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
133.814 KB
Jul 2, 2023 @ 1:13am
Nov 18, 2024 @ 3:29pm
20 Change Notes ( view )

Subscribe to download
StatsAPI

In 1 collection by albion
Albion's PZ Mods
16 items
Description
StatsAPI is a library for other mods to use, it doesn't do anything on its own. As an end user, you don't have any reason to install this unless a mod you use requires it.

A Lua reimplementation of Project Zomboid's stat calculations and moodles, finally allowing modders to modify them easily. The goal of this project is to evolve with the needs of modders, so feel free to open feature requests on the issues page[github.com].
Usage
To see API usage with examples, visit the github page[github.com]. Use the issues page[github.com] to report any bugs or request features.
No permission is granted to redistribute the mod, in part or in whole, without the express written permission of the copyright holder (albion). That means no modpacks and no including the API as part of your mod.

Workshop ID: 2997722072
Mod ID: StatsAPI
Popular Discussions View All (1)
0
Dec 2, 2023 @ 7:39am
Error log
Technic235
59 Comments
albion  [author] May 27 @ 5:51am 
the point i'm making is it's not going to 'break the game completely' suddenly when it hasn't for years and the game hasn't been updated
Beer Man™ May 27 @ 5:47am 
Well yea.. im on build 41.
albion  [author] May 27 @ 5:39am 
if it's causing problems it's an incompatibility with another mod you are using, this mod only supports b41 which hasn't been updated in over two and a half years
Unamelable May 27 @ 5:14am 
This mod breaks the game completely.
It required maintenance.
Beer Man™ May 24 @ 2:33am 
This mod is incompatible with the Bandits V2 NPC mod. It stops the character from becoming panicked.
Ⓦⓗⓘⓩⓚⓘⓓ Apr 20 @ 7:08pm 
how is this an API mod when it is hard coded to allow for only vanilla moodle traits it clearly doesnt support custom traits e.g. medical etc...
albion  [author] Nov 18, 2024 @ 3:29pm 
0.4.15
-Fixed a bug where the hover area for moodle tooltips was too small.
-Potential fix for the invisible moodle bug.
-Minor internal restructuring.
Rusty #DopeRust Oct 20, 2024 @ 6:27pm 
Hey @albion!

I just reported something on the github page, just wanted to let you know.

Thank you in advance from the bottom of my heart for all your work and time spent improving the community of PZ.

Cheers.
quinn Jun 12, 2024 @ 2:37pm 
ok! I'll try that instead, thank you!
albion  [author] Jun 12, 2024 @ 9:26am 
unfortunately this api doesn't actually reimplement the heat mechanics yet, the code you're seeing is just for displaying the correct moodle level (to make them moddable we hide the real moodles and render fake ones that look the same) but the actual calculations of heat and the moodle's effects aren't covered yet

for your case, i think from looking briefly that it may be possible to just check the character's temperature every tick and clamp it to a certain range - the game will try to fight this, but since temperature changes are gradual, i don't think it will matter?