Pokemon for Ace Berries

Hi! I havent used scripts before and I am very confused to how this works! can you guys analyze it? It doesn't give much instructions

https://crystalnoel42.wordpress.com/2014/06/24/crystal-engine-berries/

I'm trying to make a pokemon game that revolves around berries aswell, and I'd like to add berry icons if you could help with that aswell! Thanks!
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/pokemon-for-ace-berries.43098/