poly
New member
Hey,
I'm trying to learn more about how buffs work in order to add a lot of new items to my mod - Alchemy.
I've been experimenting with different values but I can't figure out a simple way to execute what I'm trying to achieve.
Can somebody kindly explain how to achieve the following:
I'd like to create a buff which adds 1 health point over 5 seconds, to a max of 20 health points.
So after 100 seconds a player would have gained 20 health points.
I've had a look at the medicalFirstAidKit code in items.xml but I'm unable to decipher exactly where the part I need is written.
Conversely, in buffs.xml I've looked at buffCoffee with the idea of perhaps using part of that code to try to get an understanding of adding value over time, but I'm just not getting anywhere.
If somebody who knows a lot more than me about this could help I'd be greatly appreciative... I'd then be able to expand the potions of my mod! I've got so many new ideas for buffs but can't implement them because I'm stuck at this part!
I'm trying to learn more about how buffs work in order to add a lot of new items to my mod - Alchemy.
I've been experimenting with different values but I can't figure out a simple way to execute what I'm trying to achieve.
Can somebody kindly explain how to achieve the following:
I'd like to create a buff which adds 1 health point over 5 seconds, to a max of 20 health points.
So after 100 seconds a player would have gained 20 health points.
I've had a look at the medicalFirstAidKit code in items.xml but I'm unable to decipher exactly where the part I need is written.
Conversely, in buffs.xml I've looked at buffCoffee with the idea of perhaps using part of that code to try to get an understanding of adding value over time, but I'm just not getting anywhere.
If somebody who knows a lot more than me about this could help I'd be greatly appreciative... I'd then be able to expand the potions of my mod! I've got so many new ideas for buffs but can't implement them because I'm stuck at this part!
Last edited by a moderator: