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

PKSV scripting Tutorial/Script Thread

44
Posts
15
Years
  • I am trying to make a script to replace the default oak walking you to the lab script.
    I placed a dude blocking the right side of the path, and the left side I created this script, but it freezes when I get to that point... this language is VERY confusing!

    Spoiler:


    I know I have a lot wrong, what would it take to make this work? Would using flags make the script easier to write? Is this even the right place to be asking for help?
     
    44
    Posts
    15
    Years
  • Yes and yes. Strange thing is when I go to look at my script, it shows up as...

    Spoiler:
     

    Full Metal

    C(++) Developer.
    810
    Posts
    16
    Years
  • ...ok...when this happens, it's usually a compiler error, try this
    step one
    compile this script in PKSV
    #eorg 0x8740264
    step two
    re-compile the original script with dynamics
    and see if it works.
     

    Jemzx

    Guardian Trainer
    44
    Posts
    14
    Years
    • Seen Nov 20, 2010
    I'm trying to change the text of Prof. Oak, but it always mix up all the words and when I fix and save the script, it turns out of order again...

    Is there a way to change Oak's text as desired (It is when u walk to grass and he stops you.)
     

    Full Metal

    C(++) Developer.
    810
    Posts
    16
    Years
  • My guess would be that you have no clue what you are doing.
    Read the script, figure out the order the text is called in, edit
    the text accordingly while also making sure that you keep the
    length shorter/equal to the original text length. If this is a bit to complicated....
    1)Start with a new ROM, don't do ANYTHING TO IT
    2) The only thing you should do to it is....
    2.A)Edit the text using a-text
    3)Create yet another new ROM and make a patch
    4)Delete the two ROMS u just created
    5)Apply the patch to your ROM Hack
     

    Jemzx

    Guardian Trainer
    44
    Posts
    14
    Years
    • Seen Nov 20, 2010
    My guess would be that you have no clue what you are doing.
    Read the script, figure out the order the text is called in, edit
    the text accordingly while also making sure that you keep the
    length shorter/equal to the original text length. If this is a bit to complicated....
    1)Start with a new ROM, don't do ANYTHING TO IT
    2) The only thing you should do to it is....
    2.A)Edit the text using a-text
    3)Create yet another new ROM and make a patch
    4)Delete the two ROMS u just created
    5)Apply the patch to your ROM Hack

    thank you Full Metal, but I'm still getting wrong the change with Prof. Oak...

    Maybe I'll delete the original script and make a new one with Pokescript... So I should cut to the starter pokemon event, and make something else...
     

    Full Metal

    C(++) Developer.
    810
    Posts
    16
    Years
  • O___O??
    Pokescript.....
    Use PKSV, trust me, it's much better
    AND it's updated and has SG, plus it's own built in script generator
     

    Jemzx

    Guardian Trainer
    44
    Posts
    14
    Years
    • Seen Nov 20, 2010
    Ok, I just saw the lesson 9, now I learn how to make the level scripts I wanted... Thanks a lot for the tutorial n_n
     
    Last edited:

    Razer Rage

    Beginning Hacker
    126
    Posts
    16
    Years
    • Seen Jul 1, 2012
    So, how does PKSV compare to XSE? Why would you recommend PKSV over XSE?

    Nice tutorial, although I would make the text larger, and maybe darker. I don't like bright text, it hurts my eyes.

    I also recommend making screenshots to illustrate what you're teaching. They make a huge difference, trust me.
     
    Last edited:

    Full Metal

    C(++) Developer.
    810
    Posts
    16
    Years
  • Well..
    1) PKSV has an sg, it has a movement planner, it can decompile thumb code and has scintilla, plus you don't need to include any header files to say "givepokemon BULBASAUR", not to mention there is a drop down code completion feature that is really nice. XSE is nice, and it has some of the same things PKSV does (calculator,notes etc) BUT it's just not quite as user friendly. XSE really is good, and there are times when i use (like for eraserange and what not) but usually, i use pksv.
    2) hm....i'll look into it...
    3) I'l try 'n make em.
     

    score_under

    Inactive; Former ROM hack tool author, ❤️
    526
    Posts
    18
    Years
  • Do u know how to work with gender script??
    Code:
    '... in the middle of some script ...
    checkgender
    compare lastresult boy
    if == jump :boy
    'do something girlish
    jump :continue
    :boy
    'do something boyish
    :continue
    'continue the script as normal
     

    Razer Rage

    Beginning Hacker
    126
    Posts
    16
    Years
    • Seen Jul 1, 2012
    I don't get it. I made a script, compiled it, and now I'm not sure how to decompile it so I can edit it. With XSE, I simply enter the offset and click the button. PKSV has this popup that has no meaning to me.

    -_-
     

    sir.euge

    Bunchies Back!
    140
    Posts
    14
    Years
    • Seen Jul 17, 2012
    nice tutorial! ihope you post more tutorials especially on movements!
     

    interdpth

    I've seen things, man.
    275
    Posts
    19
    Years
    • Seen Jun 8, 2021
    Anyone know how to set lastresult to a byte in memory?

    like
    get bytefrompointer
    set lastresult etc

    I'm probably being stupid so I imagine someone knows.
     
    Back
    Top