News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
December 14, 2018, 12:13:51 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 428 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: 13
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

December 2018
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

[CONCEPT] "Candied Ember" Mod by Lord Nyriox
[December 13, 2018, 05:26:38 PM]


TL1CP Bug Report by Sch123
[December 13, 2018, 04:35:48 AM]


Variant Classes Mod Information by Sch123
[December 12, 2018, 05:37:11 AM]


TL1CP passives by Anarch16sync
[December 10, 2018, 09:49:03 PM]


Stat affecting duration instead of chance by Phanjam
[December 08, 2018, 07:21:27 AM]


Pet Variants Mod by Sch123
[December 06, 2018, 10:09:29 PM]


Skills Expansion: Bugs Report & Ideas by doudley
[December 06, 2018, 03:45:49 AM]


Classless Character Mod by Phanjam
[December 02, 2018, 01:53:21 PM]


Questions about basic engine functionalities (e.g. Is this possible?) by Phanjam
[December 02, 2018, 01:21:24 PM]


The Classless Character Mod by Phanjam
[December 01, 2018, 01:03:09 PM]


Change Healing Potion heal amount by doudley
[November 23, 2018, 12:39:09 AM]


Equipping Weapon *Visual* to Pet? by Phiengley
[November 17, 2018, 07:03:40 AM]


Hello! by Phanjam
[November 10, 2018, 03:57:42 AM]


(Solved)Help Editing Vanilla Class (adding / taking out other vanilla Skills) by Lrv
[November 07, 2018, 05:05:55 PM]


[TL2] Ultimate Respec Lite by doudley
[November 04, 2018, 08:17:27 AM]

* Popular Topics