MZ Damage over time issues.

I am having some issues with damage over time.
Lets say a player gets poisoned in combat when battle ends the poison will not just go away it must run out of turns or be cured.

Then there is the damage rate, percentage is to strong for my taste so I need a flat rate.

Events do not seem to work well in battle and plugins often do not work well out of battle plus I have very strict rules on plugins such as they must be 100% standalone and free for non-commercial use.

So I was hoping someone here might have an idea or be able to point out something I missed.
for the first case you can simply set the state to expire automatically on battle end if that is what you want.


as for the second problem - if you really want a flat rate, then you'll need a plugin as the default engine does not support flat rates.
however your sentence is strange to me - you can scale down the percentage if a result is too high for you after all.

as for the difference between in and out of battle - outside of battle the duration of any state is counted on the number of steps taken, so if the player does not move the effect will not happen.
and the default base is a rather high number of steps to equal a battleturn...

to change that you also need a plugin, and there are very few that take that part of the engine into account.

the last two points together would suggest to me that you request a custom plugin that fits your specifications - but for that you'll have to specify how you would count the time outside battle in regards to state duration.
Moved to: MZ Support

Game Mechanics Design is not for implementation-specific questions.

If you end up needing a plugin, this will have to be moved to Plugin Requests or Plugin Support
No plugin needed. I was able to mod the rmmz_objects.js file to do what I needed.
I was able to mod the rmmz_objects.js file to do what I needed.
bad idea, because that change will be lost as soon as you update your project - and MZ is still receiving updates.

you should convert the change into a plugin - because plugins are simply javascript files that override and rewrite existing functions, exactly the same as you did manually.
but plugins keep the change, while the core js files are replaced on updates.
Good to know.
I do not know how to make plugins yet and I have made changes to other xparams that will need to be converted as well.

Any good MZ tutorials on making simple override plugins that are not videos?

Original thread: https://forums.rpgmakerweb.com/threads/mz-damage-over-time-issues.142175/