RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[REQUEST VX] Showing poison damage?

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 69
RMRK Junior
What bothers me is that I can't see how much damage poison is doing to actors or enemies..  Is there any way to do this?

****
Rep:
Level 69
On map, in battle, or both?

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Code: [Select]
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
#  This class deals with battlers. It's used as a superclass of the Game_Actor
# and Game_Enemy classes.
#==============================================================================

class Game_Battler
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :slip_damage_message # message for slip damage
  #--------------------------------------------------------------------------
  # * Application of Slip Damage Effects
  #--------------------------------------------------------------------------
  def slip_damage_effect
    if slip_damage? and @hp > 0
      @hp_damage = apply_variance(maxhp / 20, 10)
      @hp_damage = @hp - 1 if @hp_damage >= @hp
      self.hp -= @hp_damage
      @slip_damage_message = "#{self.name} took #{self.hp_damage}" + " damage due to slip damage!"
    end
  end
end

#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * End Turn
  #--------------------------------------------------------------------------
  def turn_end
    $game_troop.turn_ending = true
    $game_party.slip_damage_effect
    for i in 0...$game_party.members.size
      for state in $game_party.members[i].states
        if state.slip_damage
          unless $game_party.members[i].dead?
            $game_troop.screen.start_shake(5, 5, 10)
            @message_window.replace_instant_text($game_party.members[i].slip_damage_message)
            Sound.play_actor_damage
            wait(90)
          end
        end
      end
    end
    $game_troop.slip_damage_effect
    for i in 0...$game_troop.members.size
      for state in $game_troop.members[i].states
        if state.slip_damage
          unless $game_troop.members[i].dead?
            $game_troop.members[i].blink = true
            @message_window.replace_instant_text($game_troop.members[i].slip_damage_message)
            Sound.play_enemy_damage
            wait(90)
            $game_troop.members[i].slip_damage_message = nil
          end
        end
      end
    end
    $game_party.do_auto_recovery
    $game_troop.preemptive = false
    $game_troop.surprise = false
    process_battle_event
    $game_troop.turn_ending = false
    start_party_command_selection
  end
end
Will show it in battle.
it's like a metaphor or something i don't know

***
Rep:
Level 69
RMRK Junior
That's exactly what I needed, it works great. Thank you very much!!

**
Rep:
Level 83
Music Composer
Great idea! who made the script? it was you pacman? (i ask because for the credits)

Do you want original music for your game? Take a look here! You may like it.
Visit my Youtube Channel to listen the newest tracks and subscribe if you like my work :)
Also I have my Soundcloud account:

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
No, I wrote a similar script, but it's not as good as Cozziekuns'. Which is the one I posted.

http://rmrk.net/index.php/topic,42968.0.html
it's like a metaphor or something i don't know

**
Rep:
Level 83
Music Composer
Okey, thank you very much! oh and just a comment, i realize that the script should be posted above the battle script (i use tankentai) because if not its kinda weird (sorry, my english skills are not good enough to explain D; )

Do you want original music for your game? Take a look here! You may like it.
Visit my Youtube Channel to listen the newest tracks and subscribe if you like my work :)
Also I have my Soundcloud account: