Jump to content

Temporary enhancement/weakening of character characteristics.


HovaZ

Recommended Posts

Good day, dear forum users. I recently started making mods (I'm not very familiar with the lua language, but its syntax is not much different from the languages I'm familiar with). I came up with a little idea to create a small mod for the server that adds special alcoholic drinks.

These drinks give the player experience or increase his characteristics for a while. I was able to easily implement gaining experience when using it, but I have not yet figured out how to temporarily increase the player’s characteristics.

As for me, adding an event listener for each tick, checking the condition and removing it will not be very effective in saving resources. Maybe someone has already encountered a similar problem and successfully implemented it? I would be grateful for links or references to posts/sources where I can obtain the necessary knowledge on this issue.

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