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 Posts

Latest Profile Posts

Finally did a test of sorts for the opening of my game... ... including this shot here.
My current status!?
It might be... QUAKE!!! :o
At least that was true several hours ago. :p
Quexp wrote on Shaz's profile.
I absolutely love your profile/pic! :kaoluv:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
I made a battle results screen for my minigame.. any feedback? :)

Forum statistics

Threads
100,685
Messages
978,406
Members
132,309
Latest member
alicejenifferze
Top