• 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.

[Other] B/W Repel System Script compile error

ScizorBlade

Sup Dogg
39
Posts
4
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?
     

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • 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