Help with wavy screen effect

All I’m doing is using a modified version of Brewmeister’s Wavy Screen effect;
It is getting really difficult since I have very little experience with Ruby... Also pls move this to the right forum if needed, since I actually don’t know where else this is supposed to go.

I’m trying to modify not the code itself, it’s just fine- but I’m trying to modify it so that I can have a script call in the event interpreter to modify the wave_amp, wave_length, and wave_speed properties of a picture.
Here’s the example

(At the end of the original code)
Ruby:
class Game_interpreter
    def waveoption(id, leng, amp, spd)
        @picture.number = id #keeps saying there's no defined method; i know its in the wrong class and everything too i dont know how to refer to the instance of Picture sprite...
        @picture.number.wave_amp = amp
        @picture.number.wave_length = leng
        @picture.number.wave_speed = spd
    end
end
now I have no idea how to refer to that instance of the Picture sprite, and get the picture number (namely picture #20), then modify the sprite properties to change the wave effect properties... I looked in the help menu so much, but i didn’t find anything.
If u could tell me what I’m doing wrong, or if you need more info, please reply...
Thanks.
Why would you need to get the id through the script call if you're trying to only affect picture ID 20...?

Also you should probably link to the script you're using so it's easier for people to help out.
IIRC, the pictures are saved in an array, so picture.number would really be wrong as you call array members via arrayname[index].. I forgot which class has that picture array and the exact name of the array though. I think its on Game_Screen but not sure.. Do a global search in your script editor (CTRL+SHIFT+F) for @picture and see if anything comes up or look up Game_Interpreter and find the part which handles the Show Picture event command, that will lead you to how to get the picture.
Hmm... thanks for helping, i believe i've figured it out now... I'm actually going to think about just changing parameters for several picture ids... thanks for helping guys.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-wavy-screen-effect.118417/