Hey another question.
So I'm creating another item that will let the players freeze tiles of water if they interact with it if they have it in their inventory, I was wondering what is the best way to go about this, thanks!
I'm thinking you would have to use regions, you mean all the water in your world could conceivably be frozen if your player has this item?
It's a hard feature to implement, but it's possible.
You can use Yanfly's region event and item core, then program the item to run a common event that generates an event (galv's event generator), which is walkable ice.
It will require some coding and I can't really tell if the method I suggested has a good memory/processing efficiency though.
you wouldn't want to put events on every water tile (in the case where the player tried to freeze all of the water, or even reasonable-sized sections). A plugin that would change the tile ID from a water tile to an ice tile would be better.
Although - if you're saying the player has to interact with the water tile, and then it'll be frozen if the item is in inventory - how are you imagining they would "interact" with the water tile? You definitely wouldn't want to use events, and region plugins usually just require you to be facing, or on a region tile to trigger - no interaction required.
I can think of way for you to do it if you were satisfied with the item freezing the whole body of water instead of just a path. Would that be acceptable to you? (you could still set it up so it will thaw, say when the player leaves the map, or reaches a certain point away from the water)
Ok, I'll work something out and post it here, it will be either later today or tomorrow since I won't be home. Maybe I'll figure out a way to make a path while I'm at it, who knows, haha. Stay tuned. : )
I second the suggestion to use Galv's Event Spawner plus Galv's Tools and Yanfly's Region Events.
When the player is in the region such that he is facing a body of water, enable Galv's Tools, next the player should have an item that when used (via Galv's Tools) spawns an event the player can walk over. Hope it works. I myself am using these plugins but for a different purpose.
What exactly is your goal here? "Freeze tiles of water" is a very broad description. It might be better to explain what you're trying to achieve so we can give you more specific help.
An example:
In my game, I have an island that's surrounded by a large body of water. When the party recruits a certain character who has control over water, the water surface immediately surrounding the player freezes, so the party is then able to form a path to reach the island (or any other location that was previously inaccessible). This works by changing water tiles that are 1 or 2 tiles away into ice, and changing ice tiles that are 3 tiles away back into water (so it changes to ice as the player approaches, and back to water as the player moves away). It only happens when that certain character is in the party, but it would be simple to change it so that it only happens when a certain item is in inventory. What DOESN'T happen, that's in your description, is that there is no interaction required in order for it to trigger - it's automatic.
I have done this using a script call snippet in a parallel process event on that map. Currently it's in Ace (Ruby) but I will have to convert it to MV (JS) at some point.
Is this only on one map, or on all of them? Can you use a region tag to paint all the tiles that you want to be affected by this item?
And how does the player get this item, and can they get rid of it (and how)?
Meaning - is there a specific event that gives them the item, or can they buy it via shop processing (do you know the exact point/s when the player obtains or loses the item, and could turn a switch on/off at that time)?
Would that turn off the switch?
I'll see if I can convert my system to MV. Will have to sooner or later, but was planning to do it later. Give me a few days, and bump if I haven't got back to you and you don't have another solution by the end of the week.