Shinma

Lurker
Veteran
Joined
Dec 29, 2012
Messages
756
Reaction score
342
First Language
English
Primarily Uses
RMMV
@Shaz


There wasn't an answer for Iliketea, and I am not sure if you are okay with me answering, if not, please let me know and I will remove the below.


@Iliketea


Yes, you can have it restore TP by including the following:

  1. In the description section (text in green, between  /*   */), add in the following lines of code with the similar lines of code already there.

    • * @param All TP
       * @desc Heal TP for all party members (Y/N)
       * @default Y
  2. Also in the description section, add in the following lines of code with the similar lines of code:

    • * <LUHealTP>
  3. Under function, below the similar variables, add in the following:

    • var healTP = (parameters['All TP'].toUpperCase() || '') === 'Y';
  4. Lastly, near the bottom, with the similar lines of code, add in the following:

    • if (healTP || this.actor().meta.LUHealTP) {
            this._tp = this.maxTp();
          }

Save the file, then be sure to update it in your project by double clicking it inside of the plugin manager.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,811
Reaction score
14,977
First Language
English
Primarily Uses
RMMV
Thanks Shinma. I totally didn't even see the request when it was posted!  I'll give myself a reminder to add this to the plugin.
 

Volcore

Veteran
Veteran
Joined
Mar 10, 2016
Messages
32
Reaction score
3
First Language
English
Primarily Uses
N/A
I downloaded this plugin, but when I tried testing it, when my actors leveled up, they didnt get healed, the parameters are all set to Y, what did I do wrong?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,811
Reaction score
14,977
First Language
English
Primarily Uses
RMMV
@Volcore can you please show screenshots of the plugin setup and of one of your actors who is not getting healed?  Are they just levelling up through battle?  Are you using any other plugins, especially any that could modify the end-of-battle behaviour?  If so, which ones, and try putting my plugin below those in the list to see if it makes a difference.
 
Last edited by a moderator:

WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
I downloaded this plugin, but when I tried testing it, when my actors leveled up, they didnt get healed, the parameters are all set to Y, what did I do wrong?

I just downloaded it and am having the same problem. 


I was hoping to modify it to add 1TP per level only, but can't even get the original file working. 



image.jpeg
 

WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
Of note I have tried it without the battle aftermath plugins since those modify end of battle behavior. 
 

WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
Okay, I failed to rename the file. That gets it working to where I can refill all TP. 


Now; if I want to restore just 1 TP instead of all, I would have to change the 


if (healTP || this.actor().meta.LUHealTP) {
      this._tp = this.maxTp();
    }


to something else. I was thinking 


if (healTP || this.actor().meta.LUHealTP) {
      this._tp = this._tp + 1;
    }


but it crashes the game. 
 

WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
Alright. Got it to only add 1 TP one level up by using


if (healTP || this.actor().meta.LUHealTP) {
      this._tp++;
    }


now, I would like to adjust the if statement. 


I am not worried about those flags being set. I don't care about the TP effect being tied to a flag, I always want it in this project. So, that line can be altered. 


I want the max TP to be equal to the the actors level, instead of 100. 
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,811
Reaction score
14,977
First Language
English
Primarily Uses
RMMV
WilliamHughes, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


That is not right.  Please provide the screenshots as requested (use alt + PrtScn to take a screenshot, load it up to photobucket or something similar, and then insert it into your post - please do not take sideways photos of your monitor and post it - I turned my head for a few seconds to try and read what was there and now I feel like throwing up, so I will not even attempt to look at more images like that).
 

WilliamHughes

Veteran
Veteran
Joined
Feb 9, 2016
Messages
55
Reaction score
7
First Language
English
Primarily Uses
My apologies. I had not recalled the 72 hour line from the months ago I looked at the rules. I had always considered it improper netiquette to edit a post over an hour old. 


As to the sideways picture, did you click on it? On my devices it turns right side up when clicked on. 


At this point I have resolved all issues except being able to set the max tp to the characters level. 
 

Volcore

Veteran
Veteran
Joined
Mar 10, 2016
Messages
32
Reaction score
3
First Language
English
Primarily Uses
N/A
Sorry for the bit of delay but here is my current setup:


also, what do you mean by a picture of an actor thats not getting healed? When one of my party members levels up, and I check the menu, their HP and MP are still the same.


Also, I don't think I have any plugins that change end of battle behavior, but one of these might. Thanks for the Help.


Screenshot (1).png
 
Last edited by a moderator:

Goldschuss

A.K.A. Lye
Veteran
Joined
Dec 4, 2015
Messages
202
Reaction score
88
First Language
German
Primarily Uses
RMMV
Hello Shaz, I think your plugin needs an update.


Your plugin used to lvl up and then heal the party as it should.


Now (i think since patch 1.2) it heals and then lvls up, but does not heal the additionaly granted HP
 

Keegz

Warper
Member
Joined
May 29, 2016
Messages
1
Reaction score
0
First Language
ENglish
Primarily Uses
Hey Shaz, Nice work.

Anyway to make actors heal upon level up outside of battle? it seems to work when they levelup during battle but not if they complete a quest that gives them exp (ie. level up outside of battle)
 

RK DracoRoy

Fire Emblem RPG Gamer
Veteran
Joined
Jun 29, 2017
Messages
318
Reaction score
104
First Language
English
Primarily Uses
RMMV
@Shaz
I'm having the same issue as Goldschuss, they'll heal upon Level Up but in the moment where the MaxHP increases upon Level Up, it won't heal the additional HP given.
 

Shimbius

Writer and Audio Specialist
Veteran
Joined
May 13, 2016
Messages
34
Reaction score
4
First Language
English
Primarily Uses
RMMV
Has the issue with healing before the leveled up stats been resolved in any way? I know I was encountering that issue with the version I just downloaded, and I don't see any comment mentioning a solution to this issue...
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,811
Reaction score
14,977
First Language
English
Primarily Uses
RMMV
Wow - I don't know how I missed all these posts! I'll take a look.

Er ... this works fine for me, in the latest version of MV.

Doesn't max hp always increase when you level up? Are you seeing the healing happening at any other time?

If this isn't working for you, then I suspect you either have another plugin that conflicts with it, or you haven't named it correctly. The plugin should be called HealOnLevelUp.js
 
Last edited:

Latest Threads

Latest Profile Posts

E7DsT3VXsAInVpu

working on my avatar, because i couldn't stand looking at it anymore :D
still not finished though...
alpacaraptors = love!
''Finds icons that fits the game you're making'' Only covers 20% of what you need :p
I'm very manic-y right now. I didn't sleep and I wanted to get a bunch of stuff done, but didn't get anything done except the bare bones concept for a POSSIBLE game.
And I can't sleep now because I'm probably gonna be hanging out with my brother and I gotta discuss a bunch of BroCoG (our game group) junk with him plus it's far to late to sleep NOW.
poppetQuestBarryApproaches.jpg
While I wait for judging, I decided to start adding more "friends" to my attic. :LZSgrin:

I swear I need a whole sound pack of menacing squeaky toy noises. :kaoswt:
I can't believe I actually managed to stay motivated for the whole Game Jam duration (1 month!), definitely will be taking a break after this :0

Forum statistics

Threads
113,579
Messages
1,075,970
Members
147,562
Latest member
loki666
Top