Yanfly's Eventing a Foraging System – RPG Maker MV

So I got intrested in eventing a foraging system and i found yanfly's rather useful. I tried to follow the steps liek shown in the video here http://yanfly.moe/2018/07/13/eventing-a-foraging-system-rpg-maker-mv/ but at the part where u need to use the script I got VERY confused. and never was able to make it work.
2019-05-23_23-57-37.png

so can someone help me figure out what i need to do and which variable i gotta use to make this work as intended ? thank you in advance!
In this particular example, it looks like the MapID is using variable 2 and the event ID is using variable 1. The number in the parenthesis is the number variable to use, so you would change those numbers to the variable ID numbers that you want to use.

I could be mistaken about that, I am not a coder and I am sure someone will correct me if I am mistaken 🙂
@Barseque Jesse is correct. If you are using variable #0001 for something other than mapId to store what map you're on, or if you are using variable #0002 for something other than eventId to track the foraging event, then you need to set up two variables for mapId and eventId and use their numbers in place of the 1 and 2 respectively. Once set properly, the future line var value = this.getSelfVariable(mapId, eventId, varId); will point to the proper map and event to pull up the days left to respawn. It then subtracts 1 from that value (if possible) and resets that value. This will only work if you are targeting the proper map and event, so...that's probably the breakdown in the process. If not, well...it's a lengthy process with other places you could have gone wrong, so keep sharing those screenshots...and good luck! 🙂
The Map ID is 2 and the Events IDs are 3,4,5,6 and 7
2019-05-24_01-53-08.png


and yea I realised that i need to change the red numbers on the script as shown on the next screenshot and i know i've done the one in the green box correctly but i cant figure out the other 2 ( in the red box ) i tried to put in empty variables and didnt works and tried to put map id and event id and still didnt work x.x
2019-05-24_01-53-59.png

btw this is the original yanfly script unedited.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-eventing-a-foraging-system-rpg-maker-mv.109318/