• 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!
  • 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✓] Script error

iv0

  • 145
    Posts
    11
    Years
    • Seen Sep 1, 2023
    Code:
    #dynamic 0x?????
    #org @starscript
    checkflag 0x82C
    if 0x0 goto @cantenter
    applymovement 0x7 @cannpc
    waitmovement 0x0
    msgbox @youcan 0x2
    callstd 0x2
    closeonkeypress
    releaseall
    end
    
    #org @cantenter
    applymovement 0x7 @cantnpc
    waitmovement 0x0
    msgbox @youcant 0x2
    callstd 0x2
    closeonkeypress
    applymovement MOVE_PLAYER @cant
    release
    end
    
    #org @youcan
    = Go ahead, [player].\nCongrats, you're a truth CHAMPION.
    
    #org @youcant
    = Only true trainers can enter here,\nsorry.
    
    #org @cantnpc
    #raw 0x62
    #raw 0x2
    #raw 0xFE
    
    #org @cant
    #raw 0x10
    #raw 0xFE
    
    #org @cannpc
    #raw 0x2
    #raw 0xFE

    I'm using XSE, and when I'm walking in these script the game break down.
    Please, help me, thanks.
     
    Just...initial question, why did you input question marks for your offset?
    I put this for make the movements with increments, and I can't undestand, I put the same script in the two, but only person event works (sorry for my English).

    follow the image:
    http://prntscr.com/42bk8y
     
    Well it worked for me, so I think your issue might be with your person event numbers.

    I do this:
    Code:
    #dynamic 0x?????
    #org @starscript
    lockall
    checkflag 0x82C
    if 0x0 goto @cantenter
    setvar 0x4012 0x1
    releaseall
    end
    
    #org @cantenter
    applymovement 0x7 @cantnpc
    waitmovement 0x0
    msgbox @youcant 0x2
    callstd 0x2
    closeonkeypress
    applymovement MOVE_PLAYER @cant
    waitmovement 0x0
    release
    end
    
    #org @youcant
    = Only advanced trainers can enter here.
    
    #org @cantnpc
    #raw 0x62
    #raw 0x2
    #raw 0xFE
    
    #org @cant
    #raw 0x10
    #raw 0xFE

    Thank you very much for attention!
     
    Back
    Top