Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] altering "slip damage" in RMXP

Started by Erk64, June 08, 2007, 03:43:46 AM

0 Members and 1 Guest are viewing this topic.

Erk64

Be default, I believe that the "slip damage" option for status effects takes away 1/10 of your health per turn. I feel that this is far too potent, and I would love to find a way to alter it. However, I have this bad feeling that the only way to change it is by altering the script.

So, does anyone know how to change the "slip damage" options so that it would take away less HP per turn?
[spoiler=My Game Recommendations] 1) Demon Gate --- A great game with a terrific character-relationship system, an engaging story, and plenty of secrets and options for players who wish to be good/evil.
http://www.raizap.com/demongate/

2) Midnight --- A survival-horror game created with RPG Maker XP. Combat plays out in the smoothest running real-time battle system I have seen yet.
http://rmrk.net/index.php/topic,23239.0.html

3) The Healer --- A charming game with beautiful mapping and a fun battle system. One of the few games to use a healer as a main character, and so far it's pulled off well.
http://rmrk.net/index.php/topic,23524.0.html[/spoiler]

modern algebra

I think it requires scripting to alter slip damage  ;9

Erk64

I assumed it would.   :( Does anyone know how to fix it?
[spoiler=My Game Recommendations] 1) Demon Gate --- A great game with a terrific character-relationship system, an engaging story, and plenty of secrets and options for players who wish to be good/evil.
http://www.raizap.com/demongate/

2) Midnight --- A survival-horror game created with RPG Maker XP. Combat plays out in the smoothest running real-time battle system I have seen yet.
http://rmrk.net/index.php/topic,23239.0.html

3) The Healer --- A charming game with beautiful mapping and a fun battle system. One of the few games to use a healer as a main character, and so far it's pulled off well.
http://rmrk.net/index.php/topic,23524.0.html[/spoiler]

Zeriab

This is indeed a scripting issue.

*movage*

Shinami

This is the part you want to change.

[spoiler=Script piece you want]

class Game_Battler
  def slip_damage_effect
    self.damage = self.maxhp / 10 #This is what you want to change.
    if self.damage.abs > 0
      amp = [self.damage.abs * 15 / 100, 1].max
      self.damage += rand(amp+1) + rand(amp+1) - amp
    end
    self.hp -= self.damage
    return true
  end
end

[/spoiler]
self.damage is the damage you will take.
self.maxhp is the poisoned target's max hp.
Change the line with "#This is what you want to change." and you'll be able to setup the slip damage however you want...if you know how to use conditional branches and how to check states in scripting, you could even make various kinds of slip damage. Have fun and if something don't make sense, just ask.

Erk64

[spoiler=My Game Recommendations] 1) Demon Gate --- A great game with a terrific character-relationship system, an engaging story, and plenty of secrets and options for players who wish to be good/evil.
http://www.raizap.com/demongate/

2) Midnight --- A survival-horror game created with RPG Maker XP. Combat plays out in the smoothest running real-time battle system I have seen yet.
http://rmrk.net/index.php/topic,23239.0.html

3) The Healer --- A charming game with beautiful mapping and a fun battle system. One of the few games to use a healer as a main character, and so far it's pulled off well.
http://rmrk.net/index.php/topic,23524.0.html[/spoiler]

Shinami

Always a pleasure. Never a chore. If you aren't sure how to do something involving the slip damage, just gimme a hollar. I'm busy tearing out clumps of hair with a scripting issue but I'm never too busy to try and answer questions.