Where can I find a list of Game_Command methods, as well as the format such must be in?

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
How is it a scene?
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
How is it a scene?
What else would it be, if not a scene?

If I created my Summons status windows through scripting, it would be easy, because then all I would need to type is, Scene_WindowX or whatnot, just like all you had to type for the Load's scene, was Scene_load, but I need to call a common event to trigger the actual scene, because the scene is evented , not scripted( I can't seem to find a little keyword that = Common event, all I've found was that bulky proc_call).
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
If it is fully evented, then there's no new scene for that (it would probably either be running using Scene_Map or whatever other scene was running before you called the common event)...


Scenes (talking about it in an RM way) are simply classes/objects created via Scripting...
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
If it is fully evented, then there's no new scene for that (it would probably either be running using Scene_Map or whatever other scene was running before you called the common event)...

Scenes (talking about it in an RM way) are simply classes/objects created via Scripting...
Ok, then how would I tie a evented scene as it were, to the new menu command I made(how to assign it to a specific event on a specific map or whatnot, if I used like Scene_Map for instance)?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
If you do this the normal way, you can simply make the proc call I believe (see how yanfly's menu system/other systems can run common events from menus)... or even just look at how items can run common events...


IDK if Hime's manager runs any method you pass or if it requires always a new scene, but if the case is the new scene, then you'd need to make one for that
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I don't require anything. SceneManager.call(new_scene) is not my code.


I simply provide an API for registering a command, and then provide you with a method that calls that handle. In this case, it's called `command_summon`, defined in Scene_Menu, since it's a party menu command.


It is no different from writing a new command yourself as you have suggested initially.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Then simply replace the SceneManager.call method call with the call to start common events
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Then simply replace the SceneManager.call method call with the call to start common events
Ok so I don't need the SceneManager section at all then?

Sorry for the noob quesion, but while I'm good at editing/reading already made script, I really, really, really suck at devising script from scratch, so what would be the format for that?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you don't need it you have no new scene anyway... as for the method, try checking how Game_Interpreter runs common events
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
$game_temp.reserve_common_event(1) would tell the engine to reserve common event 1 and it will run when it is available.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
$game_temp.reserve_common_event(1) would tell the engine to reserve common event 1 and it will run when it is available.
Yea I know, that's the proc_call for common events, but you can't just toss that down in the script as is, You need the class

title, and whatever else this particular script segment may need as well.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
the class is $game_temp
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I'm not sure what you're asking, nor am I sure what you're arguing about when you've already mentioned that you have no idea what you're doing.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
it's simply


$game_temp.reserve_common_event(8)


I think you're thinking too hard that it makes you think more complicated than what is needed.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
If that's all I type at the bottom, it errors.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
where are you typing it? and what error? Always give FULL details when something happens...

does it run on Scene_Menu? if yes then maybe something like this

Code:
class Scene_Menu < Scene_MenuBase  def command_summon    $game_temp.reserve_common_event(8)  endend
you need to put it inside a method (def) of course
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
where are you typing it? and what error? Always give FULL details when something happens...

does it run on Scene_Menu? if yes then maybe something like this

class Scene_Menu < Scene_MenuBase def command_summon $game_temp.reserve_common_event(8) endendyou need to put it inside a method (def) of course
Ok that's what I was talking about, me needing.

However It's bringing up a error, heres how the whole script is laid out:

CommandManager.register:)summons,  :party_menu)

 

 

class MenuCommand_Summons < Game_Command

  

  

  def enabled?(party)

     $game_switches[15]

   end

end

 

 

 

class Game_Party < Game_Unit

  

  

  def add_menu_command_summons(args)

    cmd = MenuCommand_Summons.new("Summons", :summons)

    add_menu_command(cmd)

  end

def

 

 

class Scene_Menu < Scene_MenuBase

 

  

  def command_summons

    $game_temp.reserve_common_event(8)

  end

end

 

Nevermind, I found a typo
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
what error? we're not psychics...
The error was caused by a dumb typo(there was a def where there should've been an end)

However the game just freezes when I use the command now.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top