Dynamically digging by RegionID

Hi all,
new here, recently bought RPG-Maker-MV and already playing aroudn with the tool.
For my current task, i am trying to archieve dynamically digging at lets say any place
on the map, where it has sand texture, like so:

hc3rvbpg.png


Now, since i want the player to be able to do this at many places on the map, i do not want to place an event on each
sand tile for that (also with saving system ressources in mind).

So thinking of ways on how to archieve this (without a plugin) i came close but not finally solved it:
- i get player position on map and read this into a variable
- i then wanted to use "move event to position" to move the even to the coordinates of the player
- via "common event" i wanted to let event turn it's (currently transparent) picture to a hole in the ground
....
now this is where it get's tricky.. i would still need 1 event / per digging.

I was then thinking if i could maybe make it via regionID's:

zoz98cfl.png


...and so i found a Script of Yanfly called "RegionEvents".
With this, one event can be triggered if player walks over the region tiles.

Problems with this method:
- it activates on touch, i would still need it to activate on action button
- i want to leave the image of a dug while on the ground at places where the player has already digged a hole :>


Does anyone have an idea on hot to archieve this kind of thing?
Maybe there is a plugin already for this?

Any help would be appreciated.

Thank you, a hax guy.

EDIT: found this here too, but that gril also moves the events to a specific spot :|
Moved to: MV Support
If you want to leave a hole on the ground, you have no choice but use an event, because only an event can change the tile graphic
What does it cost for the player to dig? The shovel breaks after usage? It takes HP from the fatigue of doing so?

A work-around is not relying so much on so much terrain for the digging, and making the challenge to find the right spot by clues given (a treasure map! some old poem! the ramblings of an old fool!) instead of boringly digging around until the item is found.

If a shovel breaks after 3 usages and each one costs 100 GP, the player will try to make sure he is close to the right spot so to not burn all the treasure buying shovels to get the treasure. Same applies to HP, since healing costs gold (either from Inn or from MP that is healed in an Inn).

This way you can have it working with events.
Guys thank you so much for your replies,
i will indeed overthink what you have suggested to solve my current case
i may go like: make regions with "loose ground" that indicates a place for digging,
while that info is first being delivered by a treasure map. Technically, i will then go
with 1 Event/per tile to get these hole images.

But for a future Projekt, i would need exactly what i defined in my first post-
if i interpret your hints correctly though, then it seems that we reach an engine limitation
with the dynamic digging the way i suggested. I think i will put this into improvement
section then, as i think that besides me, it would make a lot of people happy 🙂

Thank you for clarifying, greets hax.

Original thread: https://forums.rpgmakerweb.com/threads/dynamically-digging-by-regionid.77196/