RPG Maker Forums

Oh boy, here I go posting in this forum again!

So I want to make multiple poison-like effects in my game (similar to how in the Aveyond series, there's multiple kinds of damage over time effects [Poison, Toxic Poison, Weevils, Plague]). The issue I've run into is I don't know how to make it so that the slip damage, as it's called, varies between the four (or more. I'm planning on adding a bleed effect that's weaker than Poison). I know where it's calculated, Game_Battler_3 for in battle, though I'm unsure if the same region of code also effects - affects?... English is weird- the slip damage outside of battle. Probably, considering wherever slip damage is mentioned in the scripts, there's no equation for damage other than in Game_Battler_3.

The line of code I'm looking at is around line 319 in Game_Battler_3:
Code:
 #--------------------------------------------------------------------------
  # * Application of Slip Damage Effects
  #--------------------------------------------------------------------------
  def slip_damage_effect
    # Set damage
    self.damage = self.maxhp / 10
    # Dispersion
    if self.damage.abs > 0
      amp = [self.damage.abs * 15 / 100, 1].max
      self.damage += rand(amp+1) + rand(amp+1) - amp
    end
    # Subtract damage from HP
    self.hp -= self.damage
    # End Method
    return true
  end
I kind of know what I need to do to make what I want work: make it so that depending on the state's ID, the equation is different. In short, I need to attach an ID to an equation.
I just don't quite know how to do it, and I might need to edit the other scripts where slip damage is mentioned for it to work, but I'm not sure.

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top