Most of script I know that they put the method inside the Game_Interpreter to handle the script call
class Game_Interpreter def method_for_script_call msgbox("Hello World!") endendHowever, what inside the script call is competely irrelevant with the Game_Interpreter itself.
It doesnt even need @event_id, @fiber, @params, or any instance variables within the Game_Interpreter
So, it's better if it can be called everywhere.
My approach is to make a sole-method (I don't know what is this called) not tied into any classes
def method_for_script_call msgbox("Hello World!")endHowever, I heard some people don't like this idea. Is there any particullar reason for this?
An alternative way would be include the method in extra namespase like custom module
module Theo def self.method_for_script_call msgbox("Hello World") endendThought?
class Game_Interpreter def method_for_script_call msgbox("Hello World!") endendHowever, what inside the script call is competely irrelevant with the Game_Interpreter itself.
It doesnt even need @event_id, @fiber, @params, or any instance variables within the Game_Interpreter
So, it's better if it can be called everywhere.
My approach is to make a sole-method (I don't know what is this called) not tied into any classes
def method_for_script_call msgbox("Hello World!")endHowever, I heard some people don't like this idea. Is there any particullar reason for this?
An alternative way would be include the method in extra namespase like custom module
module Theo def self.method_for_script_call msgbox("Hello World") endendThought?
Last edited by a moderator:
