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.

Common_events for script?

Status
Not open for further replies.
How to execute one common_events for script? I tried and nothing.

@common_event_id = common_event_id nothing -_-
$data_common_events[@common_event_id].trigger nothing':|
$game_switches[common_event.switch_id] == true nothing@_@


Help please.
 
Code:
$game_temp.common_event_id = 1
Just remember the event only is going to be parsed when you are in the map, so if you call this code in a menu, the event will only happen when you close it. You can close the menu by using the code:
Code:
$scene = Scene_Map.new
 
tibuda;214906 said:
Code:
$game_temp.common_event_id = 1
Just remember the event only is going to be parsed when you are in the map, so if you call this code in a menu, the event will only happen when you close it. You can close the menu by using the code:
Code:
$scene = Scene_Map.new

Very thanks...:D

It functioned perfectly. When coming back to the map it executed the event.Lack tests some things, more only this helped me very.
 
Status
Not open for further replies.

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