Dynamically digging by RegionID

Haxhax

Warper
Member
Joined
Apr 7, 2017
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMMV
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:



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:



...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 :|
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,357
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
[move]MV Support[/move]
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
 

Pine Towers

Knight Hospitaller
Veteran
Joined
Nov 11, 2015
Messages
467
Reaction score
226
First Language
Portuguese
Primarily Uses
RMMV
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.
 

Haxhax

Warper
Member
Joined
Apr 7, 2017
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top