• 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.
This is my problem.

I gave this little girl a script saying, What's your favorite pokemon? Mine's Clefairy!

But on Clefairy, only the C shows up. How can I fix this?
 
This is my problem.

I gave this little girl a script saying, What's your favorite pokemon? Mine's Clefairy!

But on Clefairy, only the C shows up. How can I fix this?
It appears that you havn't added a new line, and the game runs out of space, so to fix this, just add a new like command in the text. Like so;
Code:
What's your favorite pokemon?\lMine's Clefairy!
Hope that helped. :)
 
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.

nevermind the explaining just need the script....but please make sure the pokemon DISAPPEARES AFTER the battle..pleeeeeeease
 
Last edited:
with xse can you make it so a pokemon cant evolve like in yellow version but only for one spacifiic pokemon not the whole species the reson im asking is because I think that would be an event that you can write with xse.
 
with xse can you make it so a pokemon cant evolve like in yellow version but only for one spacifiic pokemon not the whole species the reson im asking is because I think that would be an event that you can write with xse.
No, you cannot add that event with a script editor. >_>
 
ok i got the script to the wild pokemon and to get it to work i was supposed to add the HIDESPRITE command.

and none of ya could have told me that.
 
Last edited:
k so i am kinda new to scripting but have the basic stuff down, like just adding a talking sprite, i am having trouble with the trainer thing though please tell me what is wrong with this:

#Dynamic 0x799999

#org @start
lock
faceplayer
trainerbattle 1 0x001
message @boo
boxset 6
release
end

#org @before
@before 1 =Check out my bugs

#org @after
@after 1 =Oh no!

#org @boo
@boo 1 =I'll get you back for this.


P.S. it comes up with an error 13 'type miss match on line 6 'trainer battle'

Line: trainerbattle 1 0x001
 
k so i am kinda new to scripting but have the basic stuff down, like just adding a talking sprite, i am having trouble with the trainer thing though please tell me what is wrong with this:

#Dynamic 0x799999

#org @start
lock
faceplayer
trainerbattle 1 0x001
message @boo
boxset 6
release
end

#org @before
@before 1 =Check out my bugs

#org @after
@after 1 =Oh no!

#org @boo
@boo 1 =I'll get you back for this.


P.S. it comes up with an error 13 'type miss match on line 6 'trainer battle'

Line: trainerbattle 1 0x001

Open up XSE, and look in the Command Help. Now, look at the Parameters...

Code:
Parameters:
> Byte - Kind of battle.
> Word - Battle # to start.
> Word - Reserved.
> Pointer - Pointer to challenge text.
> Pointer - Pointer to defeat text.

This is what you have...

Code:
Parameters:
> Byte - 1
> Word - 0x1
> Word - ?
> Pointer - ?
> Pointer - ?

You're missing some things, right? So, let's fill in the gaps...

Code:
Parameters:
> Byte - 1
> Word - 0x1
> Word - 0x1
> Pointer - @before
> Pointer - @after

See? Much better when all the parameters are met. So now convert that back into your script, and you're done.
Code:
#Dynamic 0x799999

#org @start
lock
faceplayer
trainerbattle 1 0x1 0x1 @before @after
message @boo
boxset 6
release
end

#org @before
= Check out my bugs

#org @after
= Oh no!

#org @boo
= I'll get you back for this.

:) If you don't understand something, post it here, or PM me.

Also, you're doing the PokeScript way of messages, with XSE you don't need the "@dynamic 1" in there...

Code:
#org @before
@before 1 =Check out my bugs
Will be...
Code:
#org @before
= Check out my bugs
Etc...
 
thanks, you have been a huge help.. one more problem i am having though is i can't get the sprite to come to me to battle, like where they see you.. as soon as i put them as a trainer in Ad-map they just don't work, and the message just comes up as "CeCeCeCeCeCe..." anything you can do to help.

Thanks,
Taylor
 
I'm new at script editing and I'm using XSE.
This script isn't working. Can anyone tell me why?
I'm testing for now so I can get the hang of creating Wild Pokemon events.
#dynamic 0x165858

#org @start
lock
faceplayer
message @suicune
startwildbattle 0x245 0x32 0x0
release
end

#org @suicune
= Cuuuun!
Wait, I left something out. I'll test to see if it works now. If it doesn't, I'll post back.
Nope, still doesn't work......
 
Last edited:
I'm new at script editing and I'm using XSE.
This script isn't working. Can anyone tell me why?
I'm testing for now so I can get the hang of creating Wild Pokemon events.
#dynamic 0x165858

#org @start
lock
faceplayer
message @suicune
startwildbattle 0x245 0x32 0x0
release
end

#org @suicune
= Cuuuun!
Wait, I left something out. I'll test to see if it works now. If it doesn't, I'll post back.
Nope, still doesn't work......
You missed out the 'callstd' after the message command. Here's what it should look like:
Code:
#dynamic 0x165858
 
#org @start
lock
faceplayer
msgbox @suicune
callstd 0x2
startwildbattle 0x245 0x32 0x0
release
end
 
#org @suicune
= Cuuuun!
You should use the 'debug' tool in XSE, it will pick up these little mistakes.
 
Thanks and I'll be sure to use the debug feature more often!

The event still doesn't work.
The offset for my event is supposed to be to the left of the offset of the rival's
mailbox in Pokemon FireRed. I click on the sprite and nothing happens.
Even if I find free space(using Advance Map), the offsets generated aren't
pinpointed on the map.
 
Last edited:
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?
 
Last edited:
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?
It would really helpful if you posted the script...
 
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?

Please post the script, so we can help you.
 
Um, I'm kind of waiting for a full XSE tut to come out, but, what would a give Pokemon script look like?
Also, the script is long.
How would I make it so that someone talks first, gives u the pokemon, then talks some more?
Also, the sound when ur given something?
Sry, I'm still a little new to scripting.
 
Code:
#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
Message @Speak
checkflag 0x200
#include stdpoke.rbh
givepokemon PKMN_SNEASAL 0x5 0x0 0x0 0x0 0x0
BoxSet 0x6
setflag 0x200
Release
End

#ORG @Speak
= There's a note attached!\n Dear [player],\pI known you since you were 6,\nI got this for your b-day.
= Would you like to rename it?

Like that. Don't steal, this is for my hack. :)

also i think mine has a glitch, :\
 
Last edited:
Um, I'm kind of waiting for a full XSE tut to come out, but, what would a give Pokemon script look like?
Also, the script is long.
How would I make it so that someone talks first, gives u the pokemon, then talks some more?
Also, the sound when ur given something?
Sry, I'm still a little new to scripting.


Code:
#Dynamic 0x800000
 
#org @main
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg1
boxset6
givepokemon 0x4 0x5 0x0
msgbox @msg2
boxset 6
setflag 0x200
release
end
 
#org @end
msgbox @msg3
boxset 6
release
end
 
#org @msg1
= Here, take this pokemon
 
#org @msg2
= Take good care of it
 
#org @msg3
= how is my pokemon doing?


there is a basic cut n' dry give pokemon script(it will give you a lv 5 charmander)
[givepokemon] this tell the script to give a pokemon (duh :D)
[0x4] 4 is charmanders number
[0x5] this one is the pkmns level
[0x0] is the value, just use 0, im not 100% percent on what this does, but i know it wont work without it )

for a more detailed givepokemon script check here
 
Last edited:
Status
Not open for further replies.
Back
Top