How is it a scene?
Where can I find a list of Game_Command methods, as well as the format such must be in?
RGSSx Script SupportWhat 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).
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...
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)?
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
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
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.
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.
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?
you don't need it you have no new scene anyway... as for the method, try checking how Game_Interpreter runs common events
$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.
the class is $game_temp
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.
so it would be like:
class $game_temp
$game_temp.call($game_temp.reserve_common_event 8)
end
?
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.
$game_temp.reserve_common_event(8)
I think you're thinking too hard that it makes you think more complicated than what is needed.
If that's all I type at the bottom, it errors.
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
you need to put it inside a method (def) of course
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
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, 😛arty_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
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.
Original thread: https://forums.rpgmakerweb.com/threads/where-can-i-find-a-list-of-game_command-methods-as-well-as-the-format-such-must-be-in.25020/