Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Poison Damage amount not displayed, Does not display how much damage is taken
Shaddow
post Aug 15 2012, 10:46 AM
Post #1


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




I've found an issue with the combat system and poison. It will not tell you each round how much damage you took from Poison. I'm not really sure how to change this to make it display, but I found this in Game_Battler:

CODE
  #--------------------------------------------------------------------------
  # * Application of Slip Damage Effects
  #--------------------------------------------------------------------------
  def slip_damage_effect
    if slip_damage? and @hp > 0
      @hp_damage = apply_variance(maxhp / 5, 5)
      @hp_damage = @hp - 1 if @hp_damage >= @hp
      self.hp -= @hp_damage
    end
  end
end


I am wondering if I can add something in here to make it display how much damage is taken each round from poison. A simple numbers pop up on the characters name would be fine, or I'm even willing for a message to display each turn. Any help with this would be greatly appreciated.


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
diamondandplatin...
post Aug 15 2012, 02:09 PM
Post #2


Level 5
Group Icon

Group: Member
Posts: 72
Type: Writer
RM Skill: Skilled
Rev Points: 45




Look up 'sprintf' smile.gif


__________________________
Go to the top of the page
 
+Quote Post
   
Shaddow
post Aug 15 2012, 09:55 PM
Post #3


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




Err...I'm still quite the noob at this scripting thing, I've found several instances of scriptf, could you be more specific on what I'm looking for?


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 08:51 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker