Error with an effect script

Hello,

I recently started using Zeus81's script for effects. It worked fine at first but when I restarted my game It shows this:
error 1411.jpg

Could someone help me with that? Here's the link for the script: https://www.dropbox.com/s/zpoxi8gn8ul38uq/Map Effects.rb

I've moved this thread to Script Support. Thank you.

Thank you!
I restarted my game
How did you restart? F12?
Old save file?
I Closed the game window and opened it again
Ok, well you're going to have to remember what changes you made. The script itself doesn't have any issues.
Tested in a demo.
Game_Interpreter 1411 is a script call error.
How is your script call looks like?
Is Script call the part where the script is in an event?
Is Script call the part where the script is in an event?
Yes
I tried again opening my game but it showed another error:

error 658.jpg

I placed another script for an underwater effect. Here's the link: https://forums.rpgmakerweb.com/inde...ons-underwater-effect-mapping-tutorial.26558/

Here's the scripts calls,

1 (effect script):script call 1.jpg

2 (Fog script) 1/2:script call p12.jpg

2 (Fog script) 2/2:script call 22.jpg
@TheoAllen can correct me, but I'm pretty sure he said before as well that you cannot put a method in a script call like that.
Reason being the method you are defining is only ever there when that code is accessed. As soon as it finishes the last line it is removed from memory.
So that will never work.
Also you are calling another method inside that method. At that point it has no idea what you are referring to.
So you get an error.
the wareflec works because it is using global variables.
So, how do I need to put it? What I need to add or delete if I want to modify the wave effect values without crashing my game?
@Gestsuka-P your first script call is already wrong in many ways.
But let me rephrase the question.

Do you know how to install scripts? Or is this your first time?
First Time
Sorry for the late answer.

I re-read the script and everything works. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/error-with-an-effect-script.122161/