• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Repeating Event

  • 65
    Posts
    12
    Years
    • Seen Jan 4, 2022
    I am trying to make it so that the player can't continue without acknowledging an event.

    It is set up so that when the player runs past a certain point they will be forced to turn around and face the event to talk to it before continuing, by event touch.

    Once they talk to the event it will add +1 to a variable that will cancel the event touch that forces them back.

    But before any of that can happen, the event that forces the player to turn back repeats infinitely never allowing the player to move.

    For example this is the code:

    @>Set Move Route: Player
    : :Move Left
    :Turn Down
    @>Wait for Move's Completion
    @Text:|The grunts need commands.
    Exit Event Processing

    When the player hits the event it makes them move left and look down, then they say the text but then they continue to try to move left infinitely, ignoring the exit event processing.

    I then tried to do this:

    @>Set Move Route: Player (Ignore If Can't Move)
    : :Move Left
    :Turn Down
    @>Wait for Move's Completion
    @Text:|The grunts need commands.
    Exit Event Processing


    Although it semi works the event repeats twice before allowing the player to take control. Example:

    Player moves left, looks down, then says text. Then moves left and cant move, then says text and player regains control.

    Why wont it stop right at "exit event processing" ?? That should stop the event but it doesn't.

    I cant do a control self switch because it will turn off the event touch and the player can proceed while ignoring the event. How can I make this not look stupid with the doubled up motion and text?
     
    Back
    Top