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

XSE Scripting Tutorial

Status
Not open for further replies.
I don't really know if I'm allowed to request scripts, or for help here, but, do you mind explaining to me in PM how to make a wildbattle script without walking pressing a on someone?
Like walking into the grass and a Pokémon appears?
 
I don't know if i can ask it here, but i need some serious help.
I want a script, that if you step on it, it will say something, and then you do one step down, untill a setflag is activated.
Please help me.
 
Last edited:
Mine keeps saying unknown keyword "boxset" at line 7 when i try to do a diolouge script
 
I don't know if i can ask it here, but i need some serious help.
I want a script, that if you step on it, it will say something, and then you do one step down, untill a setflag is activated.
Please help me.

#dynamic 0x800000
#org @start
checkflag 0x
if 0x0 (Means if not done) goto @move
release
end

#org @move
lock
msgbox @talk 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x10
#raw 0xFE

#talk
= TEXT HERE

Hope that helped
 
#dynamic 0x800000

#org @main
lock
faceplayer
msgbox @msg 0x6
release
end

#ORG @Speak
= Hayden:It's about time [Player]/nI was waiting on you/n[rival]'s mom was looking for you!

I followed the Tutorial Perfectly how come this doesnt work?
 
#dynamic 0x800000

#org @main
lock
faceplayer
msgbox @msg 0x6
release
end

#org @Speak
= Hayden:It's about time [Player]/nI was waiting on you/n[rival]'s mom was looking for you!

I followed the Tutorial Perfectly how come this doesnt work?

Don't captilize ORG or else it might not work
what was wrong with it BTW
 
Well it keeps saying error 13 type mismatch on line 6
Missing Dynamic label

Oh Lowercasing ORG did'nt work V_V
 
#dynamic 0x800000

#org @main
lock
faceplayer
msgbox @msg 0x6
release
end

#org @msg
= Hayden:It's about time [Player]/nI was waiting on you/n[rival]'s mom was looking for you!

I followed the Tutorial Perfectly how come this doesnt work?

Ahh you used two different Dynamic labels for the same msg
the fix is in bold
 
thanks, I guess i should have caught that!
 
#dynamic 0x800000
#org @start
checkflag 0x
if 0x0 (Means if not done) goto @move
release
end

#org @move
lock
msgbox @talk 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x10
#raw 0xFE

#talk
= TEXT HERE

Hope that helped

i tried it, but it doesn't work. as first it sayd he can't reconize #talk, so i changed that in #org @talk, and then it works, but when i putted in the game it will freeze. Did i do something wrong? :(
 
i tried it, but it doesn't work. as first it sayd he can't reconize #talk, so i changed that in #org @talk, and then it works, but when i putted in the game it will freeze. Did i do something wrong? :(
Change #talk to #org @talk and open up Advance Map, type in 4000 for the script's Var Number, 0003 for Unknown. That should work.
Also, if you're using R/S/E roms, use 0x04 to walk down 1 step; if you're using FR/LG roms then use 0x08.
 
Change #talk to #org @talk and open up Advance Map, type in 4000 for the script's Var Number, 0003 for Unknown. That should work.
Also, if you're using R/S/E roms, use 0x04 to walk down 1 step; if you're using FR/LG roms then use 0x08.

Thanks, he steps back now. But now there is a other problem :disappoin. It don't say anything, if i step on it, it send me back without text.
It's pretty funny, but if you know how to solve the problem, that would be awesome.
 
Thanks, he steps back now. But now there is a other problem :disappoin. It don't say anything, if i step on it, it send me back without text.
It's pretty funny, but if you know how to solve the problem, that would be awesome.
Since you didn't show me the script I can't figure out what was wrong with it. How about trying this script:

#dynamic 0x800000

#org @start
checkflag 0x1008
if 0x0 goto @move
release
end

#org @move
lock
msgbox @e 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x4
#raw 0xfe

#org @e
= Back off!
 
Since you didn't show me the script I can't figure out what was wrong with it. How about trying this script:

#dynamic 0x800000

#org @start
checkflag 0x1008
if 0x0 goto @move
release
end

#org @move
lock
msgbox @e 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x4
#raw 0xfe

#org @e
= Back off!

It's the same problem.. and if you want the script:

#dynamic 0x800000

#org @start
checkflag 0x200
if 0x0 goto @move
release
end

#org @move
lock
msgbox @talk 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x04
#raw 0xFE

#org @talk
= It isn't smart to go without a pokemon!
 
It's the same problem.. and if you want the script:

#dynamic 0x800000

#org @start
checkflag 0x200
if 0x0 goto @move
release
end

#org @move
lock
msgbox @talk 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end

#org @move1
#raw 0x04
#raw 0xFE

#org @talk
= It isn't smart to go without a pokemon!

That's really weird! I tried your script on my Emerald, Sapphire & Fire Red roms, and it worked just perfectly. I don't think there's any problem with the script. Perhaps there's some problem with the roms you use, or the hack tools.
 
That's really weird! I tried your script on my Emerald, Sapphire & Fire Red roms, and it worked just perfectly. I don't think there's any problem with the script. Perhaps there's some problem with the roms you use, or the hack tools.

It can't be the rom, because i use Sapphire, and you tried it. Maybe it's my XSE, i got version 1.0.0, i'll try to update it, and see if it works.

EDIT:
I update my XSE to 1.1.1, and now it's working :D Thanks for everything, i now have to find how i can let him step up, to the right or the left xD
 
Last edited:
It can't be the rom, because i use Sapphire, and you tried it. Maybe it's my XSE, i got version 1.0.0, i'll try to update it, and see if it works.

EDIT:
I update my XSE to 1.1.1, and now it's working :D Thanks for everything, i now have to find how i can let him step up, to the right or the left xD

Then you should take a look at diegoisawesome's MEGA-HUGE XSE Scripting Tutorial. There's a part that shows lists of PKMN movement. Here:
https://www.pokecommunity.com/threads/164276
 
Right, I have a script that I'm using so that you go into the grass and talk to a pokemon sprite and go into battle. The only thing is, the pokemon comes out like this:

Spoiler:


Here is the script:
Spoiler:


The pokémon is 0x252 because it is an added pokémon, can I get any help?
 
Right, I have a script that I'm using so that you go into the grass and talk to a pokemon sprite and go into battle. The only thing is, the pokemon comes out like this:

Spoiler:


Here is the script:
Spoiler:


The pokémon is 0x252 because it is an added pokémon, can I get any help?

I think you must've mistakenly put in 0x252 into the script. Since 252 in HEX equals 594 in DEC, and there are only 411 pokemon in the game (including the 25 unused ones). So fix that and it'll work.
 
Status
Not open for further replies.
Back
Top