• 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] Script Trouble

DJTiki

top 3 most uninteresting microcelebrities
  • 1,257
    Posts
    11
    Years
    I am having trouble with a script that refuses to keep an overworld sprite hidden, despite setting the flag to 0x200. Here is the compiled version of the script.
    Spoiler:
     
    Code:
    lock
    faceplayer
    checkflag 0x829
    if 0x0 goto 0x8800B41
    msgbox 0x88009C1 MSG_NORMAL '"DAD: Hey, [player]!\nHappy Birthda..."
    applymovement 0x1 0x8800B2E
    msgbox 0x8800A3B MSG_NORMAL '"Huh? Your Pokedex is outdated\nI'l..."
    fanfare 0x13E
    special 0x16F
    msgbox 0x8800AA8 MSG_KEEPOPEN '"Your Pokedex was upgraded!"
    waitfanfare
    closeonkeypress
    msgbox 0x8800AC5 MSG_NORMAL '"Let's go, get your present!"
    release
    applymovement MOVE_PLAYER 0x8800B31
    waitmovement 0x0
    applymovement 0x1 0x8800B37
    waitmovement 0x0
    hidesprite LASTTALKED
    setflag 0x200
    end
    Everything here is fine how it is. Make sure your settings in Advanced Map are correct (NPC ID, etc).

    There is one thing here that is redundant, though:
    Code:
    msgbox 0x8800AC5 MSG_NORMAL '"Let's go, get your present!"
    [COLOR="Red"]release[/COLOR]
    applymovement MOVE_PLAYER 0x8800B31
    You don't need 'release' until the very end of your script. It's a command that allows the player to control the in-game player, so you don't need it before 'applymovement 0xFF'.

    If you're still having problems, post a screenshot of the NPC's settings in A-map.
     
    Code:
    lock
    faceplayer
    checkflag 0x829
    if 0x0 goto 0x8800B41
    msgbox 0x88009C1 MSG_NORMAL '"DAD: Hey, [player]!\nHappy Birthda..."
    applymovement 0x1 0x8800B2E
    msgbox 0x8800A3B MSG_NORMAL '"Huh? Your Pokedex is outdated\nI'l..."
    fanfare 0x13E
    special 0x16F
    msgbox 0x8800AA8 MSG_KEEPOPEN '"Your Pokedex was upgraded!"
    waitfanfare
    closeonkeypress
    msgbox 0x8800AC5 MSG_NORMAL '"Let's go, get your present!"
    release
    applymovement MOVE_PLAYER 0x8800B31
    waitmovement 0x0
    applymovement 0x1 0x8800B37
    waitmovement 0x0
    hidesprite LASTTALKED
    setflag 0x200
    end
    Everything here is fine how it is. Make sure your settings in Advanced Map are correct (NPC ID, etc).

    There is one thing here that is redundant, though:
    Code:
    msgbox 0x8800AC5 MSG_NORMAL '"Let's go, get your present!"
    [COLOR="Red"]release[/COLOR]
    applymovement MOVE_PLAYER 0x8800B31
    You don't need 'release' until the very end of your script. It's a command that allows the player to control the in-game player, so you don't need it before 'applymovement 0xFF'.

    If you're still having problems, post a screenshot of the NPC's settings in A-map.

    Okay thanks :)

    EDIT: I went over my Person ID's and as it turns out, it was set to 0000 when the script called for 0001. So it was an easy fix.
     
    Back
    Top