Any way to change the damage rate of poison?

Darth Equus

I *HATE* Parallax Mapping.
Veteran
Joined
Feb 7, 2013
Messages
241
Reaction score
391
First Language
English
Primarily Uses
RMVX
Hope this is the right place to post this in. I'm using VX, not VX Ace.

I'm using a custom battle system in which the characters or enemies enter and execute their action right away as their turn arrives, in the order of their agility (Like in Final Fantasy X). Problem is, each time any character acts, this moves the turn "ticker" by one and anyone who is poisoned loses 10% of their total HP, instead of only when they act.

This means a boss that got poisoned right after taking its turn will lose 40 or 50% HP by the time their turn arrives again, after my characters act. This can make boss fights extremely easy, and gravely endanger the player instead of just placing a handicap on them.

So, not counting a script to modify the damage percentage of poison (and other damage over time states I want to add, like bleeding, corrosion and burn), is there any way to change this in VX's code? Like, to make it cause 5 or 2% damage per tick?

Thanks for any advice.
 

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
81
Reaction score
167
First Language
Eglish
Primarily Uses
RMVXA
You could make the poison tick flat values with a simple modify in the script Game_Battler.
In line 748 change
Code:
damage = -(mhp * hrg).to_i
to
Code:
damage = -(100 * hrg).to_i
That should make the values flat instead of %.

Oh... I just saw that it was for VX. not ace.
I think it uses the same code.
Press Ctrl+shift+F and search the first code.
 
Last edited:

Darth Equus

I *HATE* Parallax Mapping.
Veteran
Joined
Feb 7, 2013
Messages
241
Reaction score
391
First Language
English
Primarily Uses
RMVX
Well, that's the thing: I need a percentage to be effective, just not as high as 10% per tick. Will still try looking for that line, as per your suggestion.

Edit: Found this on line 990 of the Game Battler Script:

Code:
# * Application of Slip Damage Effects
  #--------------------------------------------------------------------------
  def slip_damage_effect
    if slip_damage? and @hp > 0
      @hp_damage = apply_variance(maxhp / 10, 10)
      @hp_damage = @hp - 1 if @hp_damage >= @hp
      self.hp -= @hp_damage
    end
Should I fiddle with the value where it says "(maxhp / 10, 10)"?
 
Last edited:

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
81
Reaction score
167
First Language
Eglish
Primarily Uses
RMVXA
Code:
# * Application of Slip Damage Effects
  #--------------------------------------------------------------------------
  def slip_damage_effect
    if slip_damage? and @hp > 0
      @hp_damage = apply_variance(maxhp / 3, 10)
      @hp_damage = @hp - 1 if @hp_damage >= @hp
      self.hp -= @hp_damage
    end
Try this
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
I don't believe you need to adjust the poison damage rate, but instead make a patch for the ATB script you are using.
Which you didn't mention. What is the Active Time Battle script you are using?
The patch will adjust for the enemies action not your players action.
Although I think there is something like that already somewhere.
 

Darth Equus

I *HATE* Parallax Mapping.
Veteran
Joined
Feb 7, 2013
Messages
241
Reaction score
391
First Language
English
Primarily Uses
RMVX
It's a custom CTB-style system, actually. Going to try Devildimos' suggestion, as it seems to be what I need. (I need damage over time, just not as much per tick)
 

Darth Equus

I *HATE* Parallax Mapping.
Veteran
Joined
Feb 7, 2013
Messages
241
Reaction score
391
First Language
English
Primarily Uses
RMVX
It worked! Thanks, Devildimos. I set the value at 25 and poisoned characters now lose 4% of their total HP every tick, which is a very reasonable rate. Now I can use DOT effects on bosses and tough enemies without cheesing those fights.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

ESAMarathon on Twitch, now streaming "Eat Girl". Yep, that's the title of a game... Apparently it's a Pacman knockoff.... Which is of course the only logical conclusion one would get from a name like "Eat Girl". :kaopride: I can't believe anybody would think anything else! :kaoback:
Super stoked i just finished my first town in my project, by finished i mean i can always add more decorative aesthetics and the NPCs don't talk yet but the mapping is complete and all the important chess pieces are present!
My brain: Hey, I have an idea how to make the transition to the main story quest in The Wastes more natural!
Me: Good!
My brain: You need to remake the hotel you start out in, it's not realistic enough.
Me: Ok... This was unexpected, but I can do it.
My brain: Now make each hotel floor 5 times as large to match the main part. Oh, you also need to make a bunch of new npcs to fill in the space on these maps.
Me: Crap.
Should be able to release Haxe MV/MZ next weekend.
It look that somehow MZ tracks are messed up (for example battle4 is obviously a theme, castle2 is a ship, ship1 is a scene and so on..). Maybe they just named them after with some ambiguity.

Forum statistics

Threads
100,611
Messages
977,827
Members
132,227
Latest member
YourBaka
Top