Rpg MV mining system help please!

Hello rpg family. So i'm using MV and one of the last in game systems I would like to be able to do is mining. I have watched endless videos on youtube and tried for hours to make the events and I just can't! Would some one be able to make me a mining system for my game?

I would like the system to work like this:

You walk up to a rock (the ones on the outside map preset) and if you have a pickaxe you can mine, if not its said a pickaxe is needed. Each time you strike the stone you have the chance to find 1 of 9 ore (1 being common and having a higher find percentage and 9 being rarer and having a lower find percentage) and 1 of 8 gem stones (same as the ore). The stone has a maximum of 5 times it can be struck, after wards it crumbles away then after 20mins of game play the stone will come back and the process is repeated.
That is no resource request (picture or audio) but a question on how to do something.
Moved to: MV support

And this is basic eventing with variables - are you familiar with variables?
If not I suggest you follow the link to the starting point in my signature and work through the variables guide linked there.
You will need to understand variables before we can even start to help you.

Then post a Screenshot of what you have so far in your event.
I thought where I posted was the forum for someone to make it for me? I just can not understand it and was wondering if someone in the community could help me. I have posted in there before for peoples help in making maps and it was all fine.
The problem in this case is that we can't really make it for you.
The best we could do is give you a template that needs to be adapted to your game, and you need to know how to handle variables to understand the template and be able to adapt it to your game.

We can't make your game for you, and for anything more complex you need to know the basics and variables to be able to understand and use what we give you as references. The reason why you didn't under stand the Video tutorials is probably the same one - video tutorials usually skip the basics and assumed that you already understand that part, and if you don't the entire tutorial is a waste of time for you.

That is also why we always suggest to never start working on your game idea first, but make scrap tutorial project just to work through the basic tutorials instead, as that is really neccessary before you can do anything more complex than a "go there" quest in your game.
If you know how to adapt it into your game (adjust switches and variables), then this tutorial should do what you need:

https://forums.rpgmakerweb.com/inde...-mining-smelting-synthesis.50440/#post-528449

I'm adapting it into something where the player actually mines into the walls:

Spoiler: Screens
A1.JPG
A2.JPG
A3.JPG
A4.JPG

If you want, I can provide you with the way you have to set up the events for this, but be warned, they are a headache to use.
i've been trying to adapt it but its proving kinda difficult, I thought i understood alot turns out i was wrong haha but that looks awesome !
hmmmm.

The mining part of the tutorial should provide you with events that will a) give you the pickaxe mechanic and the mechanic that stone crumbles after X hits. What you still need would be

a) the chance to get different ores ore gems from one rock
and b) the timed comeback of the rock (which is frankly a weird idea to begin with ...)

a) In the tutorial, you have a rock that has a chance of 25 % of yielding nothing, 70 % of yielding ore X, and 5 % of yielding gem X. Plus the event page with the hitting process and the rubble page. 5 pages, if I remember correctly. You can add 15 more event pages for a total of 20, the maximum in MV. Just use "Copy Event Page" and then "Paste Event Page", be sure to paste them in front of the rubble page. By copy pasting you retain all the important settings on the left side. You now have 18 slots for 9 ores and 8 gems, so delete one 😀

Think of how likely you want it to be that the player gets an ore or a gem. Say you want to retain about 25 % chance of the player getting nothing, and want it to be much more likely he gets an ore than a gem. You would then have to allocate, for example, about 60 % of the remaining 75 to ores and the final about 15 to gems. Since its 8 gems, lets say 16 %, so that each gem has a chance of 2 %. and 63 % for the ores, so that every ore has a 7 % chance. You then adjust the variable in those event pages to 21 (100-63-16) for the first of the result pages (you got nothing), than 28 for the next (Ore 1), 35 for the one after that (Ore 2) [...] 84 for Ore 9; 86 for Gem 1, 88 for Gem 2 [...], 98 for Gem 3. And of course, change the received item in each page to the item ID of your respective ore/gem.

Just an aside - this isn't exactly player friendly, if the player has to get specific ores or gems, that turns into one hell of a grinding spree. better to spread ores and gems out over several rocks and use different graphics, so that the player can guess at what he is going to get from mining that rock ... Petschko is your friend for this, look into his/her tiles: https://forums.rpgmakerweb.com/index.php?threads/petschkos-resources.47941/

b) this is a bit different. I think the tutorial had rocks that came back when you reentered the maps, due to the fact that the self-switches would be reset. You could change the self switch B into an actual switch. That would allow you to decide from outside the event itself whether or not the rock is mined. Then maybe use a common event to count frames and at some point turn of that switch. bit messy an option, and I haven't tried it yet (common events are a bit of a blind spot for me, I should use them more). Maybe there is a better way. Might be useful to look through the forum for timers etc. Once you changed the self switch, you should be able to use anything that can time stuff independent of the map you are on to turn of the switch.
after reading through this and putting into practice it makes hell of a lot more sense now and ive found my flaws and fixed them. Thank you very much @Deletrius 😀

Original thread: https://forums.rpgmakerweb.com/threads/rpg-mv-mining-system-help-please.93506/