RPG Maker VX Ace

RPG Maker VX Ace

Not enough ratings
Shared HP Battle System - v 0.1
   
Award
Favorite
Favorited
Unfavorite
UGC Type: Edit And Play
File Size
Posted
Updated
514.862 KB
Mar 8, 2015 @ 6:00pm
May 20, 2015 @ 7:31am
7 Change Notes ( view )

Subscribe to download
Shared HP Battle System - v 0.1

Description
Hello everyone, this is my first script that I'm working on, still learning the ropes but I think I have somewhat of a grasp with Ruby. Feel free to laugh at my terrible code and give me pointers on how to improve upon it.

This system is functionally identical to the default battle system, but the difference is, everyone's HP is pooled together and when any member heals or takes damage, only the pool is affected.
Another thing to note is that this system adds to the default menu screen to show the party's current total HP.

This is still a work-in-progress so please don't mind the messiness. I actually would love input on how to improve upon updating the GUI to reflect this system.

Functionally, there shouldn't be any bugs, but please let me know if you run into any.

Dropbox Mirror[dl.dropboxusercontent.com]

Links to the three classes for this system (paste them in order above main):
Shared_HP[pastebin.com]
Shared_HP_ValueDisplay[pastebin.com]
Shared_HP_MenuWindow[pastebin.com]

YEA Battle Engine compatibility
Check it out, it's a great system.[yanflychannel.wordpress.com]
Please read the instructions in the compatibility script.
Shared_HP add on for the engine[pastebin.com]

Neo Gauge Ultimate Ace compatibility
These gauges are shiny, check it out![pacmanvx.wordpress.com]
Please read the instructions in the script.
Shared_HP compatibility for Neo Gauge Ultimate Ace[pastebin.com]

Yanfly's Command Party compatibility (new!)
Check it out, it's pretty nice.[yanflychannel.wordpress.com]
Instructions are in script.
Yanfly's Command Party compatibility[pastebin.com]
16 Comments
Isometric Exercise May 20, 2015 @ 9:27pm 
That seems to have solved the problem nicely. Thanks! :)
Kiri  [author] May 20, 2015 @ 7:30am 
Oh, I just realized what I did wrong there.
Change
$game_party.partyhp(
to
$game_party.pthealth(

I'm not sure how I missed that this whole time!
Isometric Exercise May 20, 2015 @ 1:58am 
Hm, in the current demo, I'm getting the same Shared_HP error as before, except now it occurs on line 160. The only alteration I made from the demo was giving one party member a healing spell strong enough to always heal above the party's max HP for testing purposes.
Kiri  [author] May 19, 2015 @ 5:16pm 
About to update my pastebin, will also post a compatibility script for Yanfly's Command Party Script.

Sorry it took so long, life happened.
Kiri  [author] May 19, 2015 @ 3:43pm 
I can't seem to reproduce the first bug with Shared_HP.

As for the second thing you posted, I'm working on it. So far, it's updating when the turn starts, so I just gotta get it to update earlier than that.
Isometric Exercise May 4, 2015 @ 9:46pm 
Also, the shared HP total does not update if you change the party inside a battle. For example, I was using Yanfly's Command Party script and swapped one party member out for another with far higher HP. The shared HP total retained the same HP as before, as if the party member I swtiched out was still there.
Isometric Exercise May 4, 2015 @ 9:43pm 
I've discovered a new bug. If the player heals their party above the maximum shared HP total, it crashes with the following error:

Script "Shared_HP" line 145: ArgumentError occured.
wrong number of arguments (1 for 0)
Kiri  [author] Apr 29, 2015 @ 7:48am 
For those interested, you can now use this script with Neo Gauge Ultimate Ace. I just put up a compatibility patch for it.
Isometric Exercise Apr 28, 2015 @ 3:55am 
This is excellent news! Only after playing around with it did I notice that Yanfly's stuff had issues with this script. Well done on solving it!
Kiri  [author] Apr 20, 2015 @ 11:21am 
This isn't really an update, but for those of you that use the Ace Battle Engine by Yanfly, I've managed to whip up something to make this system compatible with it. WIll be updating the description shortly on how to use it with that.