Jump to content

HovaZ

Member
  • Posts

    2
  • Joined

  • Last visited

HovaZ's Achievements

  1. I'm making a small mod that should add recipes to the game for crafting special alcoholic drinks that give different bonuses. Bonuses should include gaining experience, receiving a buff for certain player characteristics (attack speed, running speed, etc.). With gaining experience, everything turned out to be extremely easy (I’ll probably even add a switch/case later for some types of alcohol that will give random experience). Now I'm stuck at the temporary bonuses stage. I tried to use the examples from the TimedActions folder, but I feel like I'm going down the wrong road. I would be grateful for any help or advice. Here is the link to the mod's github: blackrainbowtest/PZ_SHALCO: PZ Shelter server alcohol mod (github.com)
  2. 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.
×
×
  • Create New...