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

[TehTehTehTeh's] XSE Basic/Medium tutorial

Status
Not open for further replies.
problem with a script

can anyone see what is wrong in this script?
(script that i found is in spoilers, only the code I wrote is visible)

#org 0x168BE5
lock
faceplayer
checkflag 0x800
if 0x0 goto 0x8168D00
Spoiler:


'-----------------------
#org 0x168D00
checkflag 0x291
if 0x1 goto 0x8168D64
return

Spoiler:


'-----------------------
#org 0x168D64
msgbox 0x818D49C '"MOM: PROF.OAK gave you a pokémon?\n..."
givepokemon 0x55 0x5 0x22 0x0 0x0 0x0
setflag 0x800
release
end

Spoiler:


#org 0x18D49C
= MOM: PROF.OAK gave you a pokémon?\nI better help out to.



the script compiles fine, it just doesn't do anything when I talk to 'mom'
any help?
 
Does anyone have the basic wildpokemonbattle script for xse...and can you explain it a bit.including the raw and were to put the person num...or how to find the person number..but i do need the script.
 
so it works to use movements like this

#raw 0x10 0x13 0xFE

instead of this?

#raw 0x10
#raw 0x13
#raw 0xFE
 
so it works to use movements like this

#raw 0x10 0x13 0xFE

instead of this?

#raw 0x10
#raw 0x13
#raw 0xFE

Yes, it also works without the "0x" because, everything after "#RAW", XSE reads as HEX.
Code:
#raw 10 13 FE
Is the same as the other two. >_>
 
Here is an edited script with a dude that gives you the National Dex in Emerald.

Code:
'-----------------------
#org 0xE3D07E
lock
faceplayer
msgbox 0x8E3D08D '"Here you may need this on your\njou..."
callstd 0x6
special 0x1F3
release
end
 
'---------
' Strings
'---------
#org 0xE3D08D
= Here you may need this on your\njourney. The Prof. is so\lscatter-brained he forgot to\limplement this feature in your dex.\lIt's the National Dex, use it to\lkeep a record of all your pokemon\lecounters.


i need some help with some movements...there is a lab assistant in Birch's lab...i need him to walk up to you when you are attempting to leave the lab after you get the Hoenn dex from Birch.(just like how the assistant did in GSC when giving you the pokeballs, i want that same effect but with the National Dex)

And after he gives it to you, when you talk to him again he says "I hope you are making good use of that National Dex"
 
It seems like so far, basic scripts are almost exactly like pokescript, only now it is @ instead of $ and there is a dynamic offset at the beginning... Is there any major differences?
 
Hi I'm having a problem scripting every time I click on the guy or pokemon to activate the script it won't active meaning it won't give the the blastoise or I can't fight Ho-oh (note: It was a test run)

#dynamic 0x3B4DF4

#org @emergencygivepokemon
lock
faceplayer
message @give
boxset 6
givepokemon 9 70 0 0 0 0
release
end

#org @give
= Quick!/pTake Blastoise to kill/nHo-oh!

Ho-Oh script:

#dynamic 0x3B4DF5

#org @bossfight
lock
faceplayer
message @Ho-Oh
boxset 6
cry 0xA1 250
nop
nop
wildbattle 250 70 0 0 0 0
fadescreen 0
#raw 53 0F 80
setflag 200
release
end

#org @Ho-Oh
= HO-OH: KYOOOO



and also I can't press the compile button because it won't come up, but the debug thing next to it when I click on it it compiles

also I downloaded this from studio pokemon XSE
 
Hi I'm having a problem scripting every time I click on the guy or pokemon to activate the script it won't active meaning it won't give the the blastoise or I can't fight Ho-oh (note: It was a test run)

#dynamic 0x3B4DF4

#org @emergencygivepokemon
lock
faceplayer
message @give
boxset 6
givepokemon 9 70 0 0 0 0
release
end

#org @give
= Quick!/pTake Blastoise to kill/nHo-oh!

Ho-Oh script:

#dynamic 0x3B4DF5

#org @bossfight
lock
faceplayer
message @Ho-Oh
boxset 6
cry 0xA1 250
nop
nop
wildbattle 250 70 0 0 0 0
fadescreen 0
#raw 53 0F 80
setflag 200
release
end

#org @Ho-Oh
= HO-OH: KYOOOO



and also I can't press the compile button because it won't come up, but the debug thing next to it when I click on it it compiles

also I downloaded this from studio pokemon XSE
If u havent already figured it out...

save your scripts then go to tools - batch compiler - ... and choose ur rom
then click browse and go to the folder with your scripts in it
then check all the script u want 2 compile
then press compile and itll give you the offsets to put in A-map
then test it and it should work.
 
Hi I found out my problem in that last question, but

How do you use flags. I'm confused.
 
Argh ._.''

ok, here's my problem.

I'm trying to make someone give me running shoes.
i know my script works, but i'll use the build in Free Space finder
in Advance Map (1.92) And then it'll come up with a list of like 8 offsets.

i'll make a person event, and then type their script offset as one of the
ones from FSF.

then i'll edit the script in XSE and press compile, then the window pops up,
i press close, and then when i go into A-map, and try to re-open the script
it's empty.

Does anyone know what i'm doing wrong....?

*desperate-ish*
 
On top of my last post... x_x''...

I'd like to know if anyone has a list of flags for
Fire red/Leaf green and Ruby/Sapphire

i can't seem to find one D:
 
Last edited:
Argh ._.''

ok, here's my problem.

I'm trying to make someone give me running shoes.
i know my script works, but i'll use the build in Free Space finder
in Advance Map (1.92) And then it'll come up with a list of like 8 offsets.

i'll make a person event, and then type their script offset as one of the
ones from FSF.

then i'll edit the script in XSE and press compile, then the window pops up,
i press close, and then when i go into A-map, and try to re-open the script
it's empty.

Does anyone know what i'm doing wrong....?

*desperate-ish*
I'm finding that really hard to understand... sorry, I'm tired. In XSE you start with a dynamic offset:
Code:
#dynamic 0x[offset]
That's the only time you need to use an offset from FSF. Then you need to have a pointer which starts the script... normally:
Code:
#org @start
Compile the script and you should be given an offset, press copy and paste it into A-Map.

I hope that helped.
On top of my last post... x_x''...

I'd like to know if anyone has a list of flags for
Fire red/Leaf green and Ruby/Sapphire

i can't seem to find one D:
I copied this from thex4's tutorial:
Spoiler:

Please don't double post, edit your last one instead.
can i have a link to a complete XSE tutorial
Sorry, but there isn't one... You should thethethethe's tut and translate it into XSE using one of the XSE tutorials.

Good luck.
 
???umm ok... how do i do that
I know this is impractical, but you should download Pokescript and use thethethethe's tut (because it's really in-depth) to learn the language and then start using XSE because as far as I know there are no good tuts on XSE.

Sorry if that didn't help.
 
Status
Not open for further replies.
Back
Top