• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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 Problem

  • 29
    Posts
    10
    Years
    • Seen Jul 11, 2014
    So. I have a problem. For some reason NPCs are being released before I want them to. Here is my code:
    Code:
    '---------------
    #org 0x85BBBA
    lock
    faceplayer
    checkflag 0x1201
    if 0x1 goto 0x885D6E6
    checkflag 0x1200
    if 0x1 goto 0x885D6B9
    msgbox 0x885FB56 MSG_NORMAL '"These flowers are lovely!"
    release
    end
    
    '---------------
    #org 0x85D6E6
    msgbox 0x8869686 MSG_NORMAL '"I hope your Charmander is\ndoing w..."
    release
    end
    
    '---------------
    #org 0x85D6B9
    msgbox 0x886962E MSG_NORMAL '"What a cute little Charmander!\nHe..."
    giveitem 0xD 0x5 MSG_OBTAIN
    setflag 0x1201
    msgbox 0x8869661 MSG_NORMAL '"Take good care of that Charmander."
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x85FB56
    = These flowers are lovely!
    
    #org 0x869686
    = I hope your Charmander is\ndoing well!
    
    #org 0x86962E
    = What a cute little Charmander!\nHere, take these.
    
    #org 0x869661
    = Take good care of that Charmander.
    It's designed to check to see if player has obtained a Charmander from another NPC, if he/she has, this NPC gives the player 5 potions. My issue is that once the script reaches MSG_OBTAIN, all NPCs are released and wander even though text is still popping up. The exact same thing is happening with my other script to give the Charmander. Once the "[player] got a Charmander" message pops, NPCs are released. Any help?

    I should probably also point out that this is an Emerald hack.
     
    Last edited:
    Back
    Top