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

XSE Scripting Tutorial

Status
Not open for further replies.

Hiche..

 
979
Posts
16
Years
    • Seen Dec 27, 2014
    Just tell how is the give pokemon script in XSE

    givepokemon 0x<pokemon number in hex> 0x<pokemon level> 0x<item held> 0x0 0x0 0x0

    For example:

    givepokemon 0x25 0x5 0x13 0x0 0x0 0x0

    It's giving you a level 5 vulpix. It's carrying Potion.
     

    bittenka

    Brazilian User's ®
    18
    Posts
    15
    Years
    • Seen Dec 11, 2009
    thanks, i already done it! :)

    how can make when the player pass in the script, the script run, like no clicking!
    Sorry for terrible english ^^
     
    Last edited:

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • thanks, i already done it! :)

    how can make when the player pass in the script, the script run, like no clicking!
    Sorry for terrible english ^^
    Try assigning the script to a "Script" event in Advance Map, then set the first "Unknown" setting to 0300, and the "Var Number" under that to 5040

    then, when the player steps on it, the script will work.
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Um, isn't it 0003 instead of 0300?
    Well, I learned my first scripting language from The^4's tutorial (very informative BTW) and he said to use Unknown 0300 and Var Number 5040, and it has always worked for me. and since I have yet to have a problem with it, I continue to use it.
    I don't know about other variables, cause I stick with what works for me! ^-^
     
    7
    Posts
    15
    Years
    • Seen Nov 9, 2008
    can anyone help me with the move script?

    #dynamic 0x71B15C

    #org @stop
    message @better
    boxset 0x6
    applymovement 0xFF @back
    waitmovement 0x0
    end

    #org @back
    #raw 0x10 0xFE

    #org @better
    = Better take my Larvitar first.

    I step on the tile and my body just froze forever.
    I alr set unknown 0300 var number 5040
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    can anyone help me with the move script?

    #dynamic 0x71B15C

    #org @stop
    message @better
    boxset 0x6
    applymovement 0xFF @back
    waitmovement 0x0
    end

    #org @back
    #raw 0x10 0xFE

    #org @better
    = Better take my Larvitar first.

    I step on the tile and my body just froze forever.
    I alr set unknown 0300 var number 5040

    Try this:

    Spoiler:
     
    7
    Posts
    15
    Years
    • Seen Nov 9, 2008
    okay thanks. the hang body thing was solved by dunno how, not by editing script.

    anyway,
    i used your edited script and the script just does not activate when i walk on the tile.
    what's the problem now?

    Thx for your help alot :D
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    okay thanks. the hang body thing was solved by dunno how, not by editing script.

    anyway,
    i used your edited script and the script just does not activate when i walk on the tile.
    what's the problem now?

    Thx for your help a lot :D

    Did you put the unknown: 0003
    and the varnumber: 5040
     
    7
    Posts
    15
    Years
    • Seen Nov 9, 2008
    YES i've tried:
    0300 5040
    0003 5040

    i also tried 4050 instead of 5040, but the script still does not activate.
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Try removing the setflag 0x200.
    And change the #dynamic 0x71B15C to another.
    Like #dynamic 0x800000
    Find another offset that holds more bytes(free space)
     
    7
    Posts
    15
    Years
    • Seen Nov 9, 2008
    okay now my body freezes when i step on that tile. dang. i switched the dynamic to a 150byte space one. is that enough or shld i just go 200?

    #dynamic 0x71B888

    #org @stop
    checkflag 0x828
    if 0x1 goto @done
    message @better
    boxset 0x6
    applymovement 0xFF @back
    waitmovement 0x0
    release
    end

    #org @done
    release
    end

    #org @back
    #raw 0x10 0xFE

    #org @better
    = Better take my Larvitar first.
     
    62
    Posts
    16
    Years
  • Any idea what wrong with this:-

    #Dynamic 0x800000
    #org @Startscript
    Lock
    Faceplayer
    message @AskMe
    boxset 0x6
    giveitem 0x44 0x1 (shows error in this line)
    Release
    end

    #ORG @AskMe
    = Here have a RareCandy.
     

    Darthatron

    巨大なトロール。
    1,152
    Posts
    18
    Years
  • Any idea what wrong with this:-

    #Dynamic 0x800000
    #org @Startscript
    Lock
    Faceplayer
    message @AskMe
    boxset 0x6
    giveitem 0x44 0x1 (shows error in this line)
    Release
    end

    #ORG @AskMe
    = Here have a RareCandy.

    You're missing the Message Type param. So, just change that line to either...
    Code:
     giveitem 0x44 0x1 0x0
    for the message "Player obtained Rare Candy."
    Or change it to...
    Code:
     giveitem 0x44 0x1 0x1
    for the message "Player found Rare Candy."
     
    Status
    Not open for further replies.
    Back
    Top