News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
May 26, 2019, 11:15:44 PM
collapse

*
Information

Please contribute to our


Sign up for a forum account at the Front Page. | Remember to Tag your posts.
Having problems logging in to the forums? Go the front page, log out and back in again.

Author Topic: Change Healing Potion heal amount  (Read 1852 times)

Offline Philipp

  • Common
  • *
  • Posts: 1
    • View Profile
Change Healing Potion heal amount
« on: November 22, 2018, 04:56:41 PM »
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?

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 247
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: Change Healing Potion heal amount
« Reply #1 on: November 23, 2018, 12:39:09 AM »
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:
Health Potion data
[UNIT]
<STRING>BASEFILE:media/units/items/base.dat
<STRING>NAME:Health Potion
<STRING>RESOURCEDIRECTORY:media/models/items/potion
<STRING>MESHFILE:healthpotionsmall
<STRING>UNITTYPE:HEALTHPOTION
<INTEGER>RARITY:100
<INTEGER>VALUE:50
<BOOL>MERCHANTINFINITE:true
<INTEGER>MAXSTACKSIZE:99
<TRANSLATE>DESCRIPTION:Right-click to drink potion
<BOOL>SHADOWS:true
<BOOL>DONT_USE_ON_FULL:true
<STRING>ICON:icons_potions_health_small
<STRING>FALL_SOUND:Item Fall
<STRING>TAKE_SOUND:PotionGet
<STRING>LAND_SOUND:PotionDrop
<STRING>USE_SOUND:PotionUse
<INTEGER>MINLEVEL:1
<INTEGER>MAXLEVEL:12
<STRING>USES:1
<STRING>UNIT_GUID:-3195030216554507810
<INTEGER>LEVEL:6
<TRANSLATE>DISPLAYNAME:Health Potion
[EFFECT]
<STRING>NAME:HPBONUS
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:8
<STRING>TYPE:HP RECHARGE PLAYER
<STRING>UNITTHEME:health_potion
<FLOAT>MIN:3515.67
<FLOAT>MAX:3515.67
[/EFFECT]
[/UNIT]

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

Tags:
 

* Quick Search


* Member Information

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Mod Boards Activity

* Who's Online

  • Dot Guests: 6
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

May 2019
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
[26] 27 28 29 30 31

No calendar events were found.

* Recent Topics

Destroyer Rebalance by Phanjam
[May 25, 2019, 02:28:58 AM]


Darkened TL2 UI (Re-texture Mod) by Phanjam
[May 21, 2019, 02:29:35 PM]


FEP+ April 2019 Update by Phanjam
[May 19, 2019, 10:34:51 PM]


Skills Expansion: Bugs Report & Ideas by Sch123
[May 16, 2019, 10:54:27 AM]


Charge Domination % by TwinkleToes
[May 11, 2019, 04:33:57 AM]


[Help Request] Putting Custom Dungeons Into Vanilla Zones by Phanjam
[May 09, 2019, 02:19:19 AM]


Triggerable Weapons by Phanjam
[April 29, 2019, 11:15:57 AM]


Need Help: Getting Translation into game by steffire3
[April 25, 2019, 10:23:02 PM]


FEP+ by LeavingUndad
[April 14, 2019, 06:47:25 PM]


Knowledge-basing For Level & Quest Making by Phanjam
[April 13, 2019, 01:51:42 PM]


Pet Variants Mod by Phanjam
[April 11, 2019, 02:53:00 PM]


[IDEA] Maika's Quest (children's mod) by Phanjam
[April 11, 2019, 09:33:41 AM]


Need Help: Template File List by steffire3
[April 10, 2019, 07:21:54 PM]


Deathknight class by Phanjam
[April 10, 2019, 12:47:27 AM]


TL1CP Update 4 - A new baseline (I hope) by Anarch16sync
[April 09, 2019, 03:25:53 PM]

* Popular Topics