MV Variable MP Recovery when walking.

Hey there game makers. In my game I have an area that according to the story it drains the mana of mages so I wanted to incorporate that into the gameplay.

Like if the player is in this area the MP of any actor with the job class "Mage" has their mp reduced by a specified amount let's say 2 mp with each step they take and another area decrease it by 5 mp cause not all the areas are equal and for the sake of fun lets say that there's also an area that increases the mages mp by 3 mp for each step.

So any way is there a plugin that'll allow me to do this?
SRD_SlipDamage (require states by than "per area".

you just need to fix a typo in the plugin or it wont work correctly.

another way is to run a parallel event, with variable += steps
and reduce the MP.

Tea has a variable step counter (which I convert for MV version for
personal use).

you can control the variables var better if required in your need.
SRD_SlipDamage (require states by than "per area".

you just need to fix a typo in the plugin or it wont work correctly.

another way is to run a parallel event, with variable += steps
and reduce the MP.

Tea has a variable step counter (which I convert for MV version for
personal use).

you can control the variables var better if required in your need.
Thanks for the info but I'd much rather have it as a plugin. Speaking of which can you send me the MV version of the variable step counter.
This can be done with some eventing + scripting too.
You would use a variable to track the steps taken by your actors:
Control Variables -> Game Data -> Other -> Steps

Here's the parallel common event i made with the concept you provided:
Spoiler: Common Event
Screenshot_627.png
What you have to do is the change the values "manaLoss" and "mageClassId" inside the script call.
Don't forget to choose a switch to activate/deactivate the common event when you need.
This can be done with some eventing + scripting too.
You would use a variable to track the steps taken by your actors:
Control Variables -> Game Data -> Other -> Steps

Here's the parallel common event i made with the concept you provided:
Spoiler: Common Event
What you have to do is the change the values "manaLoss" and "mageClassId" inside the script call.
Don't forget to choose a switch to activate/deactivate the common event when you need.
Thanks a lot this is very useful. I would still like it to be a plugin rather than using common events but this has given me a lot of insight.
SRD_Slipdamage for states can do what you want

the Tea_EastStepCounter which is for MZ does work for MV as well.
I just extended it a little and removed unnecessary code that aren't
really required, so it works smoother.

but it works fine, you just need to use it nice in eventing and do whatever you
want it to do during steps 🙂

so each variable you set add +1 to the stepcounter, just set it to 0 on the map
and it does want you want. (or check map ID and do it all in 1 common event.
By area do you mean like a part of the map??
I mean you can do a common event and have MP's go up. Maybe the variable can control the max MP and then have it go down to a lower digit? Or, hen you step on an area on the map mp's would go up or down. Hmm. then in a common event you could have MP's go up, maybe even when something is equipped. That's an idea.
By area do you mean like a part of the map??
I mean you can do a common event and have MP's go up. Maybe the variable can control the max MP and then have it go down to a lower digit? Or, hen you step on an area on the map mp's would go up or down. Hmm. then in a common event you could have MP's go up, maybe even when something is equipped. That's an idea.
When I said area I'm meant the entire map like if the map as a specific note tag or something, and what I want is essentially MP Regen not increasing the max MP
Ok. Well there is a function just for MP to go up, not increase the max MP. Dunno about the note tag. You'll have to find someone else on that one. In my common event kinda like in DQ, it would be:
The event is a parallel process, which is switched on by a first switch in the beginning of the game.
Then in the event I did:

@>Change MP: Entire Party +2
@>Wait: 0.0 seconds

Nothing too fancy, but maybe by adding events on the map with variables or switches, maybe you can do something like

@>Conditional Branch: Variable {0001: Poison] == 1
@>Change MP: Entire Party -2
@> Play SE: 'Bite', 100, 100, 50
@> Flash Screen: Once, (31,31,31,31), @0.5s, Wait
@>Wait 0.0 seconds

Or if it's a recovery tile or whatever
@>Conditional Branch: Variable {0002: Recover] == 1
@>Change MP: Entire Party +5
@> Play SE: 'Recovery3', 100, 100, 50
@> Flash Screen: Once, (31,31,31,31), @0.5s, Wait
@>Wait 0.0 seconds

It's all up to the creative process ma boi! Hurray!!! BOI BOI BOI BOI
Ok. Well there is a function just for MP to go up, not increase the max MP. Dunno about the note tag. You'll have to find someone else on that one. In my common event kinda like in DQ, it would be:
The event is a parallel process, which is switched on by a first switch in the beginning of the game.
Then in the event I did:

@>Change MP: Entire Party +2
@>Wait: 0.0 seconds

Nothing too fancy, but maybe by adding events on the map with variables or switches, maybe you can do something like

@>Conditional Branch: Variable {0001: Poison] == 1
@>Change MP: Entire Party -2
@> Play SE: 'Bite', 100, 100, 50
@> Flash Screen: Once, (31,31,31,31), @0.5s, Wait
@>Wait 0.0 seconds

Or if it's a recovery tile or whatever
@>Conditional Branch: Variable {0002: Recover] == 1
@>Change MP: Entire Party +5
@> Play SE: 'Recovery3', 100, 100, 50
@> Flash Screen: Once, (31,31,31,31), @0.5s, Wait
@>Wait 0.0 seconds

It's all up to the creative process ma boi! Hurray!!! BOI BOI BOI BOI
Thanks a lot for this it's very helpful.
What might be kinda interesting actually is, if for "elemental tiles", tile damage or healing could be multiplied.
So when you step on a fire tile, and your main character is weak against fire, it would multiply the damage.
Or if you have a light healer and your main character steps on a light tile, then it would multiply the heal.
Or a firy light tile would do 4x damage!!
!!!
What might be kinda interesting actually is, if for "elemental tiles", tile damage or healing could be multiplied.
So when you step on a fire tile, and your main character is weak against fire, it would multiply the damage.
Or if you have a light healer and your main character steps on a light tile, then it would multiply the heal.
!!!
Oh that's an excellent idea it would really provide a lot of interesting gameplay ideas.
Imagine dungeons that could be a grotto, a magma cavern, then an ice cavern. Walking around would have adverse effects. I think RM2k3 can do that without doing common eventing.
Or even walking on spikes! Agh! Possibilities I say! Lots!!

Original thread: https://forums.rpgmakerweb.com/threads/variable-mp-recovery-when-walking.174918/