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.

Calling Common Event via script

I'm creating an evented menu system via common event, so when I exit Scene_Item I want it to go to Scene_Map and call the common event back up. So I replaced line 121 in Scene_Item:
Code:
$scene = Scene_Menu.new
with this:
Code:
$scene = Scene Menu.new

$data_common_events[3].trigger
But when I try it in game, it crashes. I'm thinking it's probably the common event trigger that I did wrong, but I'm an idiot at scripting. That's why I'm asking you guys. Help me?
 
Oops, that was a typo on my part. :x
Sorry about that.

Even so, I still end up getting an error, regardless of whether or not I call the common event. The error is something along the lines of "wrong number of arguments: 0 for 1". Any idea what's causing this?
 

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