MV Map states

Hey there game makers. Here's what I'm looking form, the party enters a map, while on that every party member is inflicted with a state that can't be removed unless the party leaves or a specific condition is made.

Yes I know I can do with by making a parallel event that day if party is not inflicted with state inflict state but I would rather like to know if there is a plugin for it.
I would rather like to know if there is a plugin for it.
I haven't heard of any plugin like that, probably because it's so simple to implement in an event as you described. There's not really any need to write code for it.

a state that can't be removed unless the party leaves or a specific condition is made.
The easy way is to just not give the player a way to remove it. If it's, say, an irradiated state, just don't give a skill/item that removes irradiated. Then, when your condition is met, you do - give them an item to do it, or swap a known skill for another version of that skill which can remove the state.

If there's some reason you can't do that, then you might legitimately need to be in plugin territory.
I haven't heard of any plugin like that, probably because it's so simple to implement in an event as you described. There's not really any need to write code for it.
I can think of reasons why someone would want a plugin for this:

If the map on which the state is added is a large city map, with 100 different houses you can go in and out, stores you can go in and out and other buildings you can go in and out, then every single house, store and other building needs to have a parallel event that removes the state.

Then it would be soooo much easier to set it up just once.

Hey there game makers. Here's what I'm looking form, the party enters a map, while on that every party member is inflicted with a state that can't be removed unless the party leaves or a specific condition is made.

Yes I know I can do with by making a parallel event that day if party is not inflicted with state inflict state but I would rather like to know if there is a plugin for it.

I do have a plugin which I made years ago, that triggers a common event after you switch maps.

You can use this common event to:
- Check if you are on map X
- Add the states if you are on map X
- Remove the states if you are not on map X

(I know the plugin is called autosave, but that is just because I made the plugin to save the game each time I switch maps. It does not actually do any auto-saving, just triggering a common event when switching maps.)
I can think of reasons why someone would want a plugin for this:

If the map on which the state is added is a large city map, with 100 different houses you can go in and out, stores you can go in and out and other buildings you can go in and out, then every single house, store and other building needs to have a common event that removes the state.

Then it would be soooo much easier to set it up just once.



I do have a plugin which I made years ago, that triggers a common event after you switch maps.

You can use this common event to:
- Check if you are on map X
- Add the states if you are on map X
- Remove the states if you are not on map X

(I know the plugin is called autosave, but that is just because I made the plugin to save the game each time I switch maps. It does not actually do any auto-saving, just triggering a common event when switching maps.)
Exactly! I thought it would be way too much trouble to put the same event for every house in one single map. Also thanks for the plugin.
I can think of reasons why someone would want a plugin for this:

If the map on which the state is added is a large city map, with 100 different houses you can go in and out, stores you can go in and out and other buildings you can go in and out, then every single house, store and other building needs to have a common event that removes the state.

Then it would be soooo much easier to set it up just once.
If you say so? You're already making paltry events on each of those to transfer back to the main map, it seems trivial to simply copy and paste one more. Like, I think it would take less time to copy and paste it 100 times than to type out the code for it 😉

But to each their own! And since you already have something that can be adapted for it, that's gravy on the ice cream. 🙂
Exactly! I thought it would be way too much trouble to put the same event for every house in one single map. Also thanks for the plugin.
I hope the plugin is helpful for you. I'd love to hear about it if it is. I made it a loooooong time ago, but you'd be the first other dev (next to myself) that works with it.

You're already making paltry events on each of those to transfer back to the main map, it seems trivial to simply copy and paste one more.

True... But lets say you have indeed 100 buildings to go in and out and all of them have an event that lets you go outside, and you use those to add/remove the state.

But what if you already have a city with 100 buildings and you want to add this state thing later? Then you need to adjust all those transfer events. Right? Even if you put the commands in a common event, you still have to add that common event into all 100 buildings, and also into all 100+ doors that lead to those 100 buildings.

And then you made a mistake... You accidentally triggered the wrong state... Instead of happy, your character is now on fire. Then you can redo all those events again. 😛

Like, I think it would take less time to copy and paste it 100 times than to type out the code for it
Well... On this I have to disagree. 😛 See, that little piece of code, you only have to write once. But the issue where you want to trigger certain actions on a bulk of maps, that might happen more often in a single project. And every time you want to chance something, you have to revisit all those events again.

---

An alternative would be Yanfly's YEP_EventCopier.js which would copy events on the same or other maps. Then when you made a mistake, you only have to chance 1 event, and the rest will automatically be changed too. But in this case, since it needs to be triggered on transfer, I would recommend my own plugin instead.
if its in 1 big map with 100 houses, than the state saves also in those houses!
as it would count in the entire city 😛

ideal map for such states are most like deserts/snow area''s etc.

Original thread: https://forums.rpgmakerweb.com/threads/map-states.152097/