• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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✓] Script compiles but doesn't work properly.

  • 1
    Posts
    6
    Years
    • Seen Jun 26, 2018
    I want the player to be able to grab the running shoes via an item ball on their desk. The script works in that the shoes are enabled after and the fanfare/fade screen happen, but for some reason none of the text appears. Anyone have any ideas?

    Spoiler:
     
    Not too experienced myself, but pretty sure having that checkflag makes it so some stuff wouldn't get executed. Try deleting that command? It doesn't look like it does anything in your code.
     
    I'm not an expert on scripting, but here's what I came up with (edits have comments after them, comments are bolded and can be removed if you want tp use this.):

    Code:
    #dynamic 0x800000
    #org @start
    lock //Removed checkfalg because it didn't seem to be useful. Removed faceplayer becase it's not useful on scripts that are for a "hidden item" ball.
    msgbox @talk1 0x6
    setflag 0x82F
    fanfare 0x13E
    msgbox @talk2 0x6
    waitfanfare
    msgbox @talk3 0x6
    closeonkeypress
    fadescreen 1
    hidesprite 0x800F //removed setflag becuse the checkflag wasn't really doing anything anyway (if you wanted it to be used, then do checkflag, then an if statement comparing the value)
    fadescreen 0
    release
    end
    
    #org @talk1
    = I almost forgot my Running Shoes.
    
    #org @talk2
    = [player] put on Running Shoes! //I don't know if what you had was "technically the same thing", it's personal preference which you want to use I guess. (also depends on if you want it to be "Player put on Running Shoes" or just "Put on Running Shoes.")
    
    #org @talk3
    = Now we're ready!
     
    Back
    Top