• 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] Scripting trouble

  • 9
    Posts
    9
    Years
    • Seen Aug 12, 2014
    So, I have a script, and I don't know what's wrong with it, but I seem to get an error. Can you guys fix it for me?

    '---------------
    #org 0x800036
    #org $start
    lock
    faceplayer
    checkflag 0x828
    if 0x01 goto $done
    #raw 0x76
    #raw 0x75 0x01 0x00 0x0A 0x03
    message $grass
    $grass 1 = Psst, hey kid. Do you want a\nPOKéMON? Do you want Bulbasaur?

    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start1
    #raw 0x76
    givepokemon 1 5 0x8B
    setflag 0x828
    release
    end

    #org $start1
    #raw 0x76
    #raw 0x75 0x07 0x00 0x0A 0x03
    message $water
    $water 1 = Do you like Squirtle?
    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start2
    #raw 0x76
    givepokemon 7 5 0x8B
    setflag 0x828
    release
    end

    #org $start2
    #raw 0x76
    #raw 0x75 0x04 0x00 0x0A 0x03
    message $fire
    $fire 1 = Do you like charmander?
    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start
    #raw 0x76
    givepokemon 4 5 0x8B
    setflag 0x828
    release
    end

    #org $done
    message $given
    $given 1 = Hey I am only allowed to give you \none Pokemon.
    boxset 6
    release
    end

    Thanks
    Jepniels
     

    GoGoJJTech

    (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
  • 2,475
    Posts
    11
    Years
    So, I have a script, and I don't know what's wrong with it, but I seem to get an error. Can you guys fix it for me?

    '---------------
    #org 0x800036
    #org $start
    lock
    faceplayer
    checkflag 0x828
    if 0x01 goto $done
    #raw 0x76
    #raw 0x75 0x01 0x00 0x0A 0x03
    message $grass
    $grass 1 = Psst, hey kid. Do you want a\nPOKéMON? Do you want Bulbasaur?

    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start1
    #raw 0x76
    givepokemon 1 5 0x8B
    setflag 0x828
    release
    end

    #org $start1
    #raw 0x76
    #raw 0x75 0x07 0x00 0x0A 0x03
    message $water
    $water 1 = Do you like Squirtle?
    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start2
    #raw 0x76
    givepokemon 7 5 0x8B
    setflag 0x828
    release
    end

    #org $start2
    #raw 0x76
    #raw 0x75 0x04 0x00 0x0A 0x03
    message $fire
    $fire 1 = Do you like charmander?
    boxset 5
    compare 0x800D 0x0001
    if 0x00 goto $start
    #raw 0x76
    givepokemon 4 5 0x8B
    setflag 0x828
    release
    end

    #org $done
    message $given
    $given 1 = Hey I am only allowed to give you \none Pokemon.
    boxset 6
    release
    end

    Thanks
    Jepniels

    Please Please PLEASE use XSE
    https://www.dropbox.com/s/0t2wylmh4juzvux/Unofficial_XSE.zip
    Basically it's better, easier, and more updated and no bugs.
    If you switch over I can help you :D
    But read diegoisawesome's mega-huge scripting tutorial to learn XSE
     
  • 9
    Posts
    9
    Years
    • Seen Aug 12, 2014
    Please Please PLEASE use XSE
    Basically it's better, easier, and more updated and no bugs.
    If you switch over I can help you :D
    But read diegoisawesome's mega-huge scripting tutorial to learn XSE

    Can you please rewrite it for me in XSE?
     
    Back
    Top