• 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!
  • 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.

[Other] Problem with NPC movement

  • 3
    Posts
    10
    Years
    • Seen May 15, 2024
    Hello
    I'm new to both scripting and the PC
    I've been having problems with getting my NPC to walk away after speaking to you.
    What it's meant to do:
    The script is meant to have an NPC give the player a pokemon (Eevee) and then he is meant to walk away however he does not move.
    any ideas on how to resolve this? the script i am using currently is in the spoiler below.
    Thanks in advance.

    Spoiler:
     
    It seems like he would only move if you say you don't want Eevee, am I right?

    Because in this subscript there is no applymovement:

    Spoiler:


    The way you've set up the script is weird, why setflag when he hasn't given you eevee? Unless it's a case of you have one chance to get it kind of thing.

    I've fixed your script:

    Spoiler:

    (I've ommitted the text and movement strings just for clarity, of course they should be in there)
    As you can see i don't see the point of the checkflag at the start so you can remove that and the 'if' if you're going to give the person a person ID.
    Replace the 'XXXXXX' with free space and fix the grammar mistake :) 'received an Eevee

    Hope that helps!
     
    Yeah I noticed a few of the mistakes after posting this but I still couldn't get it working.
    The grammar mistake is actually from when it was meant to be a pichu, but yeah thanks for the help.
     
    I don't see a movement list at the pointed to data - there is no #org 0x8801E1A?
     
    Back
    Top