• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

XSE Scripting Tutorial

Status
Not open for further replies.
5
Posts
15
Years
  • Seen Jul 11, 2008
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?
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
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. :)
 
15
Posts
15
Years
  • Seen Aug 4, 2010
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:

robie392

Pokemon Prof.
58
Posts
15
Years
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.
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
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. >_>
 
15
Posts
15
Years
  • Seen Aug 4, 2010
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:

tharding6

Veteran Trainer
58
Posts
18
Years
  • Seen Mar 31, 2016
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
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
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...
 

tharding6

Veteran Trainer
58
Posts
18
Years
  • Seen Mar 31, 2016
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
 

wave-guiding riolu_08

The Aura is with Riolu!
2
Posts
15
Years
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:

1KewlDude

Really busy... STRESS!!
124
Posts
16
Years
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.
 

wave-guiding riolu_08

The Aura is with Riolu!
2
Posts
15
Years
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:
5
Posts
16
Years
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:

1KewlDude

Really busy... STRESS!!
124
Posts
16
Years
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...
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
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.
 
5,814
Posts
16
Years
  • Age 30
  • Seen May 19, 2021
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.
 

Ryousha

Waiting for Gen 4 Remakes
954
Posts
16
Years
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:

KhaosKnight

The 1 and only Khaotic Hacker
355
Posts
16
Years
  • Seen May 28, 2015
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