Player Status Effects API
Lo and Behold! The Player Status Effects API introduces, as the name implies, status effects for the player. Things like burning, poison, confusion, fear, and whatever else comes to your mind are now easier than ever.
This API creates a framework for giving the player said effect, keeping track of their duration/intensity, and making that value evolve depending on the actions taken by the player.
So far, the main features of the API are:
– Adding/subtracting/removing effects
– Persistent effects that are saved even if you leave the game
– Automatically increasing/decreasing the value of the effect passively.
– Tracking placement of the effect icons, so they can remain above the player at all times
– Multiple effects at once, each tracked independently
– "Smart" effect icon placement, that adjusts to how many other effects are being displayed
– "Charge" effect animation mode, that keeps track of the maximum duration for that effect (or the maximum value before something is done to the player with it) and current value of it.
– Preset effects, for those preferring not to set up your own.
The API is fully documented and said documentation can be found here (https://pastebin.com/7Yp3YwmH) , or in the discussion page
This was made by one of the creators of the IPECAC Community Mod. If you haven’t heard about it yet, I heavily recommend you check it out here: https://ipecaccommunitymod.wordpress.com/