• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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] Need help with scripts

  • 23
    Posts
    8
    Years
    Is there a script to prevent a person event from showing up in the game until the National dex is obtained?
     
    Is there a script to prevent a person event from showing up in the game until the National dex is obtained?

    A sample NPC script:
    Code:
    #dynamic 0x[FF Offset]
    
    #org @start
    lock
    checkflag 0x16F
    if 0x1 goto @nationaldexobtained
    msgbox @msg1 0x6
    release
    end
    
    #org @nationaldexobtained
    msgbox @msg2 0x2
    end
    
    #org @msg1
    = No, you don't have the National Dex.
    
    #org @msg2
    = You got the National Dex!

    Basically the command "checkflag 0x16F" checks for the National Dex.
     
    A sample NPC script:
    Code:
    #dynamic 0x[FF Offset]
    
    #org @start
    lock
    checkflag 0x16F
    if 0x1 goto @nationaldexobtained
    msgbox @msg1 0x6
    release
    end
    
    #org @nationaldexobtained
    msgbox @msg2 0x2
    end
    
    #org @msg1
    = No, you don't have the National Dex.
    
    #org @msg2
    = You got the National Dex!

    Basically the command "checkflag 0x16F" checks for the National Dex.

    thanks a lot!
     
    Back
    Top