Status
Not open for further replies.

ShinyRedUmbreon

Wannabe-Animator + Gamer
Veteran
Joined
Sep 3, 2017
Messages
61
Reaction score
12
First Language
English
Primarily Uses
RMVXA
I'm looking for a script that can vary amounts of HP recovered from skills and items, so that it isn't a fixed amount every time.

Items seem to always give the same amount of HP each time, and so does skills.

Here's an example.

Eric goes to his inventory menu and gets 3 potions, using them all(the potion recovers about 500 HP, according to the description of the item). He gains 498, 501, 502 HP from those 3 potions, instead of 500, 500, 500 like it would in the default engine.

Is there a script that already does this? Because I can't find it, even with quick Google searches.
 

NinjaKittyProductions

Professional Murder Hobos
Veteran
Joined
Jul 9, 2013
Messages
484
Reaction score
470
First Language
English
Primarily Uses
RMMV
You can achieve this just by the item itself. Normal healing items in VX Ace have an Effect like Heal 500 HP. However, if you use the damage formula box, you can set a specific amount or use a formula. The main point is the Variance found underneath the Formula box. Therefore, with a 20 variance, if the Heal item healed for 100, it would actually heal between 80 -120.


HealingItem.PNG
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,906
Reaction score
642
First Language
English
Primarily Uses
RMVXA
You just need to set the variance in the editor.
On the item screen for potion is is set to recover hp 500.
Delete that and use damage type hp recover.

*Ninja'd by an actual ninja, nice. At least I went out properly. @NinjaKittyProductions
 

ShinyRedUmbreon

Wannabe-Animator + Gamer
Veteran
Joined
Sep 3, 2017
Messages
61
Reaction score
12
First Language
English
Primarily Uses
RMVXA
Oh I see. I was being a complete dummy. Thanks you two!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,852
Reaction score
5,424
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Megumi_Aramaki wrote on Takeshi014's profile.
Here you go! Enjoy mapping!
Megumi_Aramaki wrote on Takeshi014's profile.
Valley can be done by outside mountain town tilesets I will send you right away!
Hi everyone! I've relased a demo about my new game in "Games in Development". Someone interested? :3
Going live at 2pm EST
Today is the day! I will be productive in game dev work! I will - *gets distracted by cat playing with her toy mouse* Awww <3
Whelp. I tried to be productive.

Forum statistics

Threads
109,043
Messages
1,041,567
Members
141,530
Latest member
jno8034
Top