• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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

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?
 
Yes and yes. Strange thing is when I go to look at my script, it shows up as...

Spoiler:
 
...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.
 
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.)
 
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
 
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...
 
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
 
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:
thank u for teh complimentz...
i'm finking of making mawr......
 
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.
 
Do u know how to work with gender script??
 
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
 
withe the checkgender command of course
That will be added into the tut as lesson 10.
 
thank you score under. n_n
 
nice tutorial! ihope you post more tutorials especially on movements!
 
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