RPG Maker Forums

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?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top