• 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!
  • Scottie, Todd, Serena, Kris - 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.

[Script] Scripting issue

  • 6
    Posts
    9
    Years
    • Seen Nov 11, 2020
    I want to make a pokeball give someone a pokemon, then disappear. When i use the code *below* my game either doesnt give me the pokemon and you hear a click when i select the pokeball, or weird text is displayed and it freezes the rom. Please help me

    The code:

    #dynamic 0x1EABD0

    #org @start
    hidesprite 1
    fanfare 0x13E
    msgbox @event1 0x6
    givepokemon 0x133 0x5 0x1 0x0 0x0 0x0
    waitfanfare
    release
    end

    #org @event1
    = [PLAYER] recived a [red_fr]pokemon!
     
    You need to add in advanced map the movement 11, that makes disapear the object from the map. To make disapear foreven you also need to add a person ID so the "Person" (the pokeball) Disapear when the script is over. Hide sprite doesn't make it disapear, it just hide it. maybe you need to try put at the start "lock" and then "faceplayer" to. i have to said that i never try that, so good luck
     
    Back
    Top