• 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!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Make an event return?

  • 73
    Posts
    9
    Years
    Ok, so the last time I made a three hour long description for a forum question, so I'm just gonna cut to the chase.

    For an event, I want it to be event touch, as in it is noticed when the player walks towards it, but I want to make something like in platinum in the first town, if the player tries to leave without talking to Barry, a guy walks up to the player and says,"Hey, you're friend was looking for you." Then returns to where he was.

    The part I want to know is how regardless of which spot you try to use to leave the town, he'll walk back to where he was perfectly. How do you make the event walk up to the player, than back where it was before? I mean if it walks all the way down, then back. (like, with events with the script Kernel.pbNoticePlayer(get_character(0))) Thanks if you get the chance. xD that took too long.
     
    conditional branch + Route Movement

    The Conditional Branch is to check to see if the player has the item

    The Route Movement is to make the player not be able to walk past this even and could make this event move back to place as well
     
    If the guard is standing in front of an object he can't pass through, just make him take a dozen steps back in the direction he came from and "ignore if can't move". Given he's a guard, he most likely does have such an object at his back, to prevent the player sneaking around behind him.

    In the unlikely event that there's nothing to block him from walking past his starting point, then you can use labels to create a loop. Each loop moves him one step back, and then checks his coordinates. If he's back where he should be, jump out of the loop. If he's not there yet, jump back to the start of the loop to make him take another step.
     
    Back
    Top