• 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!
  • 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] B/W Repel System Script compile error

ScizorBlade

Sup Dogg
  • 39
    Posts
    5
    Years
    Hello. The Script i am posting is Darthatron's B/W Repel System Script which won't work.

    Code:
    #org @Main
    lock
    checkitem 0x800E 1
    compare 0x800d 0x1
    if b_>= goto @ThereAreMore
    msgbox @RepelExpired 0x3
    release
    end
    
    #org @ThereAreMore
    msgbox @UseAnother 0x5
    closeonkeypress
    compare 0x800d 0x1
    if b_true goto @CallASM
    end
    
    #org @CallASM
    callasm 0x081BFB69
    end
    
    #org @RepelExpired
    = Repel's effect wore off.
    
    #org @UseAnother
    = Repel's effect wore off...\nUse another?

    It says 'Type mismatch on line 7 missing #define'

    What's wrong?
     
    Your XSE probably doesn't have the defines for operators like 'b_>='. Thankfully these operators can be expressed via values instead. Try this script:

    Code:
    #dynamic 0x800000
    
    #org @Main
    lock
    checkitem 0x800E 1
    compare 0x800D 0x1
    if 0x4 goto @ThereAreMore
    msgbox @RepelExpired 0x3
    release
    end
    
    #org @ThereAreMore
    msgbox @UseAnother 0x5
    closeonkeypress
    compare 0x800D 0x1
    if 0x1 goto @CallASM
    end
    
    #org @CallASM
    callasm 0x081BFB69
    end
    
    #org @RepelExpired
    = Repel's effect wore off.
    
    #org @UseAnother
    = Repel's effect wore off...\nUse another?
     
    Back
    Top