Fishing Minigame Script Help

● ARCHIVED · READ-ONLY
Started by TheGreatDirector 2 posts View original ↗
  1. Hello,

    I am having trouble getting a script for a fishing minigame to work on VX Ace.

    The issue could be that it just isn't compatible with it but I'm not sure.

    My basic understanding is that he  script basically calls up a common event on a tile that you step on and creates windows for the minigame along with input triggers.

    The code is this:

    module Ayub

      module Ayyub2100

        TEXT="Would you like to go fishing?"

        A="YES"

        B="No"

      end

      

      

      

      class Fishing < Scene_Base

        include Ayub::Ayyub2100

        def initialize

          @index=0

          create_command_window

          @Fishing=Window_Flash.new

        end

        def start

            super

            create_menu_background    

          end

          

        def terminate

            super

            dispose_menu_background

            @command_window.dispose

            @fishing>dispose

        end

     

        def finish

          $scene=Scene_Map.new

        end

        

        def create_command_window

          @command_window=Window_Command,new(150,[A,B])

          @command_window.x=0

          @command_window.y=60

          @command_window.opacity=100

          @index=@command_window.index

        end

        

        def update

          super

          update_menu_background

          @command_window.update

          @fishing

          .update

          if @index !=@command_window.index

            @index=@command_window.index

          end

          

          if Input.trigger?(Input:: B)

            finish

          end

          

          if Input.trigger?(Input::C)

            case @command_window.index

            when 0

              @game_temp.common_event_id=1

              finish

            when 1

              finish

            end

          end

        end

                

       class Window_Fishing < Window_Base

          include Ayub::Ayyub2100

          def initialize

            super(0,0,544,60)

            self.contents.draw_text(0, y+WLH*0,544,WLh,TEXT)

          end

        end

      end

     end 

     

    The tile that the minigame runs on has the script 

    $scene=Fishing.new

     

    I keep running across this error whenever I try to run the minigame on the tile-

    Script 'Game_Interpreter' line 14111: NameError occured.

    uninitialized constant Game_Interpreter:: Fishing

     

    Here's a video that I copied the script from(it goes by pretty fast) -


     

    Any ideas?