Fishing Mini-Game script issue

Hello,

I'm trying to put the fishing mini-game by Galv, but it keeps throwing errors.

I tried doing this by creating a event, which gives the players the option to play the minigame, but it keeps throwing errors upon errors, even when I tried to make amends.

Can anyone help?

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.


1. Please provide a link to the script


2. Please state what the errors are. Show the EXACT text (containing the script name, the line number, and the exact error code)


3. Please give a screenshot of the event with the script calls. Make sure the image includes the WHOLE event window, not just the commands.


Did you put the script in the correct place? It should be below Materials and above Main.
I did put it under Materials above the Main.

Here is where I got the script and the mini-game: http://forums.rpgmakerweb.com/index.php?/topic/11915-fishing-mini-game/

This is what it looks like, before I clicked "Play minigame"

  Screenshot 1.png

And this is what its like after clicking on "Play minigame"

Screenshot 2 (before inserting the game).png

Here is what the event is like

Screenshot 3.png

And here is the script (and mind you I still have the whole script in the Materials part)

Screenshot 4.png
You have done something strange to the Game_Interpreter script. It looks like, instead of pasting the script below Materials, you have attempted to insert methods into the appropriate scripts for the classes to which they belong.

You have created a method within a method in Game_Interpreter. The last image is not meant to look like that at all. That method is supposed to look like this:

#-------------------------------------------------------------------------- # * Script #-------------------------------------------------------------------------- def command_355 script = @list[@index].parameters[0] + "\n" while next_event_code == 655 @index += 1 script += @list[@index].parameters[0] + "\n" end eval(script) endYou need to fix that - change it to what it should be, and get rid of that extra def fishing stuff from that script. If you DID put it in the correct place, there's no need to try and insert individual methods elsewhere into the code.
Okay, I put it back to original.

I still have the whole script under Materials.

Btw, about the event thing on the fisherman, is there anyway that I can fix this?
Well, from a very quick perusal of the script's instructions, you don't do a SceneManager.call to launch the game.

It says you have to use script calls to add the fish you want to appear, change the background and options if necessary, and then you call fishing.

So your Script command might look something like this:

Code:
add_fish(1,1,1,2,2,2,3,3,4,5)fishing
in its most simple form, to give you 3 of fish type 1, 3 of fish type 2, 2 of fish type 3, and one each of fish types 4 and 5.
Wow! I tried it, and it really worked!!

Thanks a lot. God bless!  🙂

(I best to this for all the minigames)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/fishing-mini-game-script-issue.20930/