PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive


Archive Old threads that serve no purpose are here.

Thread Tools Display Modes
Old 17th July 2013, 04:10 AM   #1
Oh god the bees
Diegoisawesome's Avatar
Join Date: Jul 2013
Location: :noitacoL
Age: 22
Posts: 60
Default [Gen III] diegoisawesome's XSE Level Scripting Tutorial

diegoisawesome's XSE Level Scripting Tutorial

Do Not Take or Modify Without Permission

A lot of people have been asking me for this, so here it is!

Step 1:
Make the script you want.

Step 2:
Add a setvar 0x(variable number) 0x1 into your script. Make sure that the player is FORCED to do the part that you add it into. I recommend using variables 0x4050 up.
Note: You do NOT need a setflag/checkflag situation unless you have a script that sets a flag for another script.

Step 3:
Compile the script.

Step 4:
In A-Map, go to the map you want to put your level script onto.

Step 5:
Go to the Header view.

Step 6:
Under Map Script, remove all other old level scripts and press Add.

Step 7:
Under Script Type, select 02 Validates values, loads handler to...

Step 8:
Paste the script offset into the Script offset 2 box.

Step 9:
Put the number of the variable that will be set to 0x1 in your script under Flag. Leave the Value box alone.

Step 10:
Press Save map scripts.

Step 11:
Press Ctrl+H on your keyboard. The view should change to Pro-Header view.

Step 12:
In the Map options>Map script offset box, copy the offset past the dollar sign and paste it into the Offset box in XSE.

Step 13:
Decompile the script and...Blank! Not to worry! Press the button right next to the Decompile button, press the Decompile button itself and...voila! There's a script now!

Step 14:
There should be a minimum of three parts to the script: two things with pointers and your script that you made. In the second part, there should be a pointer to your script. Under it, there should be a #raw word 0x(random number). Replace the random number with 0. Compile it and test it out in the game.

Step 15:
Enjoy your level script!

BONUS: Make multiple level scripts of the same type (type 0x2 or 0x4)!
Even though Advance-Map doesn't let you do it correctly, you can still manually insert your own.

In Step 14, there's a random number underneath the pointer to your script. If you have free space after this, you can instead replace the random number with another variable number, then another variable value, and another script, and so on. Like so:

#org 0x166F6E
#raw word 0x408A
#raw word 0x1
#raw pointer 0x8166F88
#raw word 0x4071
#raw word 0x1
#raw pointer 0x8166FA0
#raw word 0x0

There IS a limit to how many level scripts you can have like this, though I'm not sure what it is. It's probably not going to get reached, though, in normal usage.
Diegoisawesome is offline  
Likes DarkPsychic, Elsa, looper, Bela, Full Metal ★ liked this post
Sponsored Links
Old 17th July 2013, 11:09 AM   #2
Let it go!
Elsa's Avatar
Join Date: Apr 2010
Location: United States
Age: 22
Posts: 365

Man, it's nice to see this tutorial here. Thanks, Diego ;p

- - - - - - - Elsa - - - - - - -
Twitter | YouTube | Steam | Twitch
- - - - - - - - - - - - - - - - -
Elsa is offline  
Old 17th July 2013, 01:46 PM   #3
What are we doing?
Rizon's Avatar
Join Date: Jul 2013
Location: Thailand
Age: 19
Posts: 18

Oww, this helped me and other hackers. Good job Diego!
I'll give it a try! :3

EDIT: Woah! It worked perfectly!
Cry, and the world will slam the door on your face!

Last edited by Rizon; 18th July 2013 at 03:20 AM.
Rizon is offline  
Old 17th July 2013, 07:04 PM   #4
DarkPsychic's Avatar
Join Date: Jul 2013
Location: Colorado
Age: 29
Posts: 14

I want to know your XSE secrets hahaha

This is a great and strait forward tutorial Diego much appreciated.

What would be useful is a Complex or Advanced Scripting section because there is so much more that can be done but as a beginner not to long ago Var's where specially hard to pick up as there is just not really an tutorials on them and what they are capable of. Not to mention the countless other commands that are not really mentioned in tutorials that should be.
"No man is your Friend,
No man is your Enemy,
Every man is your Teacher."
DarkPsychic is offline  

diegoisawesome, gen, iii, level, scripting, tutorial, xse, [Tutorial]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:16 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts