• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - 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✓] Trying to create a roadblock script and all it does is softlock you

  • 9
    Posts
    15
    Years
    • Seen Oct 5, 2023
    I'm really not sure where I'm going wrong here. What I want to happen is the character is stopped, put into the dialogue, then is forced to take a step back. I've tried making it always work without the flag, rearranged it a couple times, and nothing is working.

    Code:
    #dynamic 0xA01922
    
    #org @start
    lockall
    checkflag 0x821
    if 0x1 goto @youguud
    textcolor 0x0
    msgbox @nofurther 0x4
    closeonkeypress
    applymovement 0xFF @moveaway
    waitmovement 0x0
    releaseall
    end
    
    #org @youguud
    releaseall
    end
    
    #org @nofurther
    = Hold it! The Pokémon in this\nCave are too strong for new\ltrainers. Come back once you've\lgotten two gym badges.
    
    #org @moveaway
    #raw 0x13
    #raw 0xFE

    I feel like I've tried what feels like every different possible combination of where to put certain lines, using different types of message boxes or anything. I am completely stumped here. I literally recreated the entire old man coffee script at one point and that was also still soft locking. Why would this happen? I'm trying to place this script on a new map, if that makes a difference.
     
    Last edited:
    Yeah that must be it, I didn't know you needed to set those values even if you didn't intend on changing any variables and could just do it all through flags. I guess script tiles are a bit different though. Thank you.
     
    Back
    Top