Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

SP Item Heal Text

I been messing around with my scripts and than My SP Healings don't show any numbered Text when a SP heal Item is used is ther a way or Script to make SP healing Number show?
 
Let me see:
Code:
class Game_Battler
  alias_method :seph_spdamagedisplay_gmbtlr_sp=, :sp=
  def sp=(sp)
    old_sp = @sp
    self.seph_spdamagedisplay_gmbtlr_sp=sp
    difference = @sp - old_sp
    self.damage = "#{difference} SP"
    self.damage_pop = true
  end
end

You could try that. I haven't tested it, so let me know.
 
By text, do you mean the bouncing numbers the show up when you get hurt/healed/attack? I know that SP healing/damage doesn't have battle numbers in some CBS' for some reason, so that may be what he's talking about.
 
Ok. Without opening RMXP (don't have it here), try this:

Code:
class Game_Battler
  alias_method :seph_spdamagedisplay_gmbtlr_sp=, :sp=
  def sp=(sp)
    old_sp = @sp
    self.seph_spdamagedisplay_gmbtlr_sp=sp
    difference = @sp - old_sp
    self.damage = "#{difference} SP"
  end
end

class Scene_Battle
  alias_method :seph_spdamagedisplay_scnbtl_up4s5, :update_phase4_step5
  def update_phase4_step5
    seph_spdamagedisplay_scnbtl_up4s5
    for battler in $game_party.actors + $game_troop.enemies
      next if @target_battlers.include?(battler)
      if battler.damage != nil
        battler.damage_pop = true
      end
    end
  end
end

Let me know if that does what you want.
 
 
http://img505.imageshack.us/img505/605/51796359ub1.png[/img]

Sorry Sep if i'm not explaining it well, but I'll try better with screenshot. In the SS when I use a HP Potion as you can see it shows a 1189 in Green Text how much you healed, but When use a SP Potion it textless doesn't tell you how muched you healed no numbers at all.



jimmyly":31hwqehb said:
"THIS SUXS
is not working!!!!!" man most of the important stuff i bookmarked are uselss
 
Ok. The problem is that the sp= method sets the damage instance, but the rest of the item effect method does it again, resulting in a nil damage message.

I am going to make a minor addition to my Multiple Damages system, as this will be required for this to work. I will get back to you when I do. ^_^
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top