Common Event Calling

● ARCHIVED · READ-ONLY
Started by Evgenij 2 posts View original ↗
  1. Hello,

    So I made a common event, wich just shows one message.

    Then I made a NPC-Event, which calls that common event 5 times in a row.

    When I test this ingame, I only get the message once.

    I think this is because the common event call just reserve the common event id, but this happens so fast that the common event only run once.

    Is there a more proper way for calling a common event?

    Here is a small example:

    class Game_Actor   alias :test_level_up             :level_up  def level_up    test_level_up    $game_temp.reserve_common_event(1)  end endIf you have 2 ppl in your party and both get a Level Up at the same time, I want the common event running 2 times, for each actor, but because of the way how the reserving works, the common event only runs one time.

    If I make it this way, It will work, but Im unsure if it is a good way:

    class Game_Actor   alias :test_level_up             :level_up def level_up    test_level_up    interpreter = Game_Interpreter.new    interpreter.setup($data_common_events[1].list)  endmfg.

    It is difficult to explain what I want in english, but I hope you get what I want.
  2. Common events are executed asynchronously. There is no guarantee when they will be executed.


    If you can't reserve more than one common event, then you can make it take more than one


    For example, something like this


    http://www.himeworks.com/2013/08/01/common-event-queue/