Torchmodders

Modding => Modding Questions => Topic started by: Philipp on November 22, 2018, 08:56:41 am


Title: Change Healing Potion heal amount
Post by: Philipp on November 22, 2018, 08:56:41 am
Hi,

i want to create a mod that decreases the heal amount of Healing Potions.

For example:
The smallest Healing Potion recovers 900 Health over 8 seconds.
I want to change it so that the smallest Healing Potion recovers 450 Health over 8 Seconds.

i knew that you can change Player_Generic which seemts to inflict the heal amount, but also the Health of Players. Is it possible to change only the amount of Healing Potions?
Title: Re: Change Healing Potion heal amount
Post by: doudley on November 22, 2018, 04:39:09 pm
Hi and welcome to torchmodders!

Yes, you can change the potions' recovery effect by modifying the values inside the unit data of the potions themselves.

Directory of the potions are located at:

MEDIA>UNITS>ITEMS>POTIONS

You will have to modify the following item units:
HEALTHPOTION.DAT
HEALTHPOTION2.DAT
HEALTHPOTION3.DAT
HEALTHPOTION4.DAT
HEALTHPOTION5.DAT
HEALTHPOTION 6.DAT
HEALTHPOTION 7.DAT
HEALTHPOTION 8.DAT


Then edit the float values which are the
MIN and MAX of the "HPBONUS" effect.

For example:
Spoiler: Health Potion data (hover to show)

3515.67 for both MIN and MAX is the value that you need to change.