Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help With Adding Commands in Dargor's Command Manager Script

I've been playing around with Dargor's Party Changing script which is awesome, but I had another menu setup which was incompatible with it, so I chose to just stick with his script and thus use his Command Manager Script. However, I'm not quite sure how I create commands.

His comments simply state to add a command, you use @command_window.add_command("command"), however, all I want this command to do is call a common event using $game_temp.common_event_id. I tried fiddling around with the actual script tiself since it overrides the menu, however, I kept getting errors. So would anyone be able to help me with this? Thanks.
 
Well, @command_window.add_command("command") will only add the command.

You also need to go into the menu's update_command method and under

"case @command_window.index"

put

"when 'command name'; $game_temp.common_event_id = number"

this'll add the actual command itself, but remember to replace command with the name of the command you added, and to replace number with the common event number.

that should be it.
 
Aagh, my bad. My laptop had some serious issues and had to be sent out for repairs for a few weeks. But I finally got back into RPG Maker, and went to try this out, but I'm getting an error. I have the Commands Manager script in my scripts already set up and everything, added in the common event command into the menu's update command, but when I use an event to call the command manager, in this case @command_window.add_command("Map") it gives me the following error:

NoMethodError occurred while running script.

undefined method `add_command' for nil:NilClass


Could this have something to do with the fact I'm using Dargor's party changer script as well? Thanks!

EDIT: Checked and I'm using version 1.2 of command manager.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top