- Joined
- Jul 21, 2015
- Messages
- 11
- Reaction score
- 1
- Primarily Uses
So, I'm trying to add a new option to the main menu, and I don't really know what I'm doing. I found a tutorial but I think that must be for an older version of rpgmaker. So far I've done this.
In Window_MenuCommand
In Window_MenuCommand
In Scene_Menudef add_internet_command
add_command(Vocab::internet, :internet, internet_enabled)
end
Created Scene_Internet (basically a copy of Scene_Status)def command_internet
SceneManager.call(Scene_Internet)
end
The problem I'm having is with the Window_MenuCommand part saying it can't find the vocab, and I don't know how to define a new vocab or even exactly what it is. In the tutorial I was looking at it said something about defining a internet.new thing, but I don't see anything.new in any of the scripts so I assume that's outdated info. Someone else said I didn't need to have the vocab part in there at all, that I can just call stuff directly. So I assume the vocab means vocabulary and is a way to "shortcut" scripts? Anyway, if anyone could guide me to some info about how to properly do this that would be great.#==============================================================================
# ** Scene_Internet
#------------------------------------------------------------------------------
# This class performs the internet screen processing.
#==============================================================================
class Scene_Internet < Scene_MenuBase
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
def start
super
@status_window = Window_Status.new(@actor)
@status_window.set_handlercancel, method
return_scene))
@status_window.set_handlerpagedown, method
next_actor))
@status_window.set_handlerpageup, method
prev_actor))
end
#--------------------------------------------------------------------------
# * Change Actors
#--------------------------------------------------------------------------
def on_actor_change
@status_window.actor = @actor
@status_window.activate
end
end

