The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: &&&&&&&&&&&&& on June 15, 2013, 07:13:53 AM

Title: (RMVXA) How I called script?
Post by: &&&&&&&&&&&&& on June 15, 2013, 07:13:53 AM
How do I make something have the ability to be summoned by a call script event?

I feel like such a noob babby asking all these questions, sorry.  ;9
Title: Re: (RMVXA) How I called script?
Post by: modern algebra on June 15, 2013, 12:23:06 PM
It depends on what you're calling. If you are trying to go to a new scene, then you could use this:


    SceneManager.call(Scene_Menu)


Replace Scene_Menu with the name of the scene you are calling.

If you want to do something else (or even if you want to do that but need to do some other things first), then you just do it. Notably, however, the context for anything you are doing is the Game_Interpreter class. Thus, if you want to do something particular, or complicated, you could do it as a method of that class.

If what you are looking to do is just create a window, then the window should ultimately be located within the Scene_Map class. So, you should make a method in that class doing it, and then you can call it with something like:


$scene.method


Where method is the name of the method you created.
Title: Re: (RMVXA) How I called script?
Post by: &&&&&&&&&&&&& on June 17, 2013, 12:56:18 AM
Thank you Mr. Algebra.