• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

  • 993
    Posts
    4
    Years
    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.
     
  • 23
    Posts
    7
    Years
    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