News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
February 19, 2019, 10:37:47 AM
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 1725 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: 245
  • 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: 15
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

February 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

No calendar events were found.

* Recent Topics

Classless Character Mod by Phanjam
[Today at 08:58:06 AM]


Pet Variants Mod by Sch123
[Today at 04:12:39 AM]


Cool basics by TwinkleToes
[February 18, 2019, 05:58:12 AM]


Deathknight class by Sch123
[February 17, 2019, 12:45:51 PM]


[TOOL] TLDatLexer Rebuild by Phanjam
[February 17, 2019, 03:44:39 AM]


[CLASS] Emberdrake V2 by Phanjam
[February 17, 2019, 03:43:37 AM]


Variant Classes Mod Information by Sch123
[February 12, 2019, 05:40:25 PM]


Need help on an issue with no help anywhere by Phanjam
[February 11, 2019, 12:00:02 PM]


Hello TorchModders! Super late to the party by Phanjam
[February 05, 2019, 07:45:08 AM]


Requesting a mod: anybody to help? by Giallo
[February 01, 2019, 03:29:07 PM]


[CLASS] Emberdrake by Lord Nyriox
[January 21, 2019, 09:08:23 PM]


Torchlight Frontiers announced by Kva3imoda
[January 19, 2019, 01:33:56 AM]


Lord Nyriox's Blog by Lord Nyriox
[January 16, 2019, 07:18:27 AM]


[TL2] Ultra Respec by Phanjam
[January 09, 2019, 01:27:56 PM]


Playable Zealot by Lord Nyriox
[January 08, 2019, 06:55:49 PM]

* Popular Topics