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
646
Reaction score
422
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
646
Reaction score
422
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

In other news, my new computer is now ordered, and I'll have it in my hot little hands by the end of the week! CAN'T WAIT!!!
I've said my cat's name in such a baby-talk manner over the years, Biggs is now Biggoro, Bella is now Bellllyyaah, and somehow.....somehow Tessa is Sessashan
Did a massive ****up in my code that would have caused the game to crash on most computers and almost released an update without noticing it.
I keep thinking today is Thursday.
And I look forward to the next preview thread coming this afternoon.
And then I realise it's not Thursday at all.
And then I get sad :(

Forum statistics

Threads
100,449
Messages
976,070
Members
132,082
Latest member
nwr
Top