• 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] Scripting problem

  • 287
    Posts
    12
    Years
    Spoiler:


    Game: Pokemon FR
    Info:
    There are 3 pokeballs, each has this script (with text and pokemon changed)
    They all work fine, but when I choose one of them, afterwards, the other ones dont have a script
    When I interact with them, I should get

    #org @nope
    = It's a PokéBall.

    But I get nothing instead
    I used the command gosub for experiment purposes, since it doesn't work with goto
    Hope you guys can help me :)
     
    It's simple:
    Your gosub points to the wrong type of offset. (use goto by the way there's nothing wrong with it and gosub would make it more complicated because you would have to return it to the original offset and all that)

    Instead of having #org @nope, you should have something that points to said message. Your current #nope
    Code:
    #org @nope
    = It's a PokéBall.

    What you must change it into
    Code:
    #org @nope
    msgbox @extramsg 0x6
    release
    end
    
    #org @extramsg
    = It's a PokéBall.

    So you need an extra script to call the message box into action. A message box will not execute on its own!
     
    Back
    Top