State Damage

I've been prototyping a game where the player goes out West, on a Trail, with multiple party members, where death is around every corner.

The game is on a loop with the player moving left.

One issue I am having is the State Damage. I can add States to the players randomly. However I don't believe the engine registers the steps the player makes when 'Set Movement Route' is initiated therefore no damage is going to the player who is infected by dysentery.

Is there a way to go into the code and adjusting this?
It's doable with a minor change in code but first, do you have any plugins that allows state damage every step? Testing it on a blank project and the vanilla code doesn't have an obvious state damage feature when walking on the game map
It's doable with a minor change in code but first, do you have any plugins that allows state damage every step? Testing it on a blank project and the vanilla code doesn't have an obvious state damage feature when walking on the game map
My list of plugins are pretty small at the moment. I tried the Slip damage plugin, but again the system doesn't register the steps.
Turns out the vanilla code does allow for state damage to register but only if the player is not being controlled by an event and it happens only once every twenty steps by default.

Wrote a simple plugin that will make state damage register even when the player is moved via event. It also lets you choose how many steps it takes for damage to register. This plugin will make it so all movement will register state damage so if you have your caravan move around and you don't want any state damage registered then we might want a plugin a little fancier than what I hacked together

Also message boxes may automatically pop up mid-event if states are removed by walking enough steps. A quick test show me they don't interfere with event functionality
Turns out the vanilla code does allow for state damage to register but only if the player is not being controlled by an event and it happens only once every twenty steps by default.

Wrote a simple plugin that will make state damage register even when the player is moved via event. It also lets you choose how many steps it takes for damage to register. This plugin will make it so all movement will register state damage so if you have your caravan move around and you don't want any state damage registered then we might want a plugin a little fancier than what I hacked together

Also message boxes may automatically pop up mid-event if states are removed by walking enough steps. A quick test show me they don't interfere with event functionality
Thanks for the plugin! However, when I tested the plugin out, for whatever reason it did not remove HP from the party members when adding a poison state and movement route.
Thanks for the plugin! However, when I tested the plugin out, for whatever reason it did not remove HP from the party members when adding a poison state and movement route.
Does the poison state have a negative regeneration trait? When I was testing this plugin, it seems to be the main way that it subtracts HP
Does the poison state have a negative regeneration trait? When I was testing this plugin, it seems to be the main way that it subtracts HP
Yeah strange, it is. I'm just fishing for reasons, would it be the different versions of MV that we are using?


1599849972396.png

I tried both ways.
1599850128453.png


1599850150606.png

I've moved this thread to RPG Maker MV Support. Thank you.

@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
Weird. Updated to 1.6.1. Not sure what is going on/
Plugin is in:

1599909998479.png
@Ruth Studio First and third attachments aren't showing for me.

My version of rpg_objects.js is 1.6.1. And yours?
Plus the plugin is installed in the plugin manager as well, right?
Found the issue! Works perfectly, thank you! Worried I had create a thousand if statements.

In the code you were missing the semi-colon:

Pixem.stepsForTurn = Number(Pixem.Parameters['Steps For Turn'])

Original thread: https://forums.rpgmakerweb.com/threads/state-damage.127167/