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.

[Resolved] Call common event through script?

Do you know how to? ^^

I tried putting on a switch and setting the common event activation to auto run/parallel process to that switch, but it doesn't work in-battle. (As I want to do it in-battle. I took a look at command_117 which normally calls common events, and it uses @events, but there are no events in battles so I don't know how to do this.)

Thank you!
 
Its in the FAQ.

[rgss]# If On Map : Replace id with common event id
$game_temp.common_event_id = id
# If in Battle : Replace id with common event id
common_event = $data_common_events[id]
$game_system.battle_interpreter.setup(common_event.list, 0)
[/rgss]
 

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