No pop-ups when party heals via skill

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
Since we are using code for this, we can probably do more.
Ruby:
class Game_Battler < Game_BattlerBase
  def leeching_shot(a,b)
    c = a.atk * 1.6 - b.def
    @result = c * 2.7
    $game_party.alive_members.each { |f|
    f.change_hp((c * 2.7).to_i, false)
    make_damage_popups(f) }
    @result.clear_damage_values
    return c
  end
end
Untested.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,725
Reaction score
923
First Language
Dutch
Primarily Uses
N/A
This one breaks with Battle Symphony. And deals no damage.

 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
647
Reaction score
423
First Language
English
Primarily Uses
RMVXA
I have the YEA damage pop-ups in my game as well, and this is something I added on:
Ruby:
class Game_BattlerBase

  alias amn_yeapop_gamebat_changehp change_hp
  def change_hp(value, enable_death)
    amn_yeapop_gamebat_changehp(value, enable_death)
    if value != 0
      setting = :hp_dmg  if value < 0
      setting = :hp_heal if value > 0
      rules = "HP_DMG"   if value < 0
      rules = "HP_HEAL"  if value > 0
      text = sprintf(YEA::BATTLE::POPUP_SETTINGS[setting], (value.abs).group)
      create_popup(text, rules, [])
    end
  end
 
end
That should make the pop-ups work when you use change_hp in your original formula.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,725
Reaction score
923
First Language
Dutch
Primarily Uses
N/A
Oooh that one works with Roninator2's old setup. It even shows the correct values for the characters :D
Was it something that wasn't added automatically to the battle engine?
I noticed it was also missing a pop-up for "CRITICAL" so I fixed that one too.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
647
Reaction score
423
First Language
English
Primarily Uses
RMVXA
Cool, glad it works! Yeah, I think it was something missing from YEA's original battle script.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I think my goal for MZ ... is to actually release a game and not have twenty technical demos and debugging projects. Let's see if I can manage that. ;o
I am starting to enjoy writing. I never thought I would enjoy it since my dyslexia was holding me back so much.
Thanks to the community here :)
For those interested chapter 2 and 3 are available to read here:
I'm having a fun time working with the MZ RTP. The waterfall hasn't changed, though, so I'm wondering if they didn't make a new one or if they forgot to put it in...

good progress on the typescript Definitions files almost done all the Manager and yet I still have to do the Battle Manager...who is seriously so much data lol
Are the export options for MZ known yet?

Forum statistics

Threads
100,646
Messages
978,068
Members
132,259
Latest member
RegularManGuy
Top