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

RaiRai-kun's XSE Tutorial [Updated Big-Time!]

Status
Not open for further replies.
16
Posts
15
Years
  • Seen Oct 4, 2009
im not 100% about this but i think you need 6 values when you give a pokemon:
givepokemon 0x147 0x5 0x0 0x0 0x0 0x0
 

VanillaThunderbolt

Generic User Title
94
Posts
15
Years
  • Seen Mar 1, 2012
im not 100% about this but i think you need 6 values when you give a pokemon:
givepokemon 0x147 0x5 0x0 0x0 0x0 0x0
... Dang...
You're right.
I completely over looked that xD
Thanks!

Now I applied it, and there's a few problems.
He said the speech, but instead of HIM moving, the player moved, said the second speech, and made the second movement.
Then, I checked my pokemon, and it was a Crawdaunt [which I probably know why that happened]. When I exit the menu, I was the other guy. Not the player, the guy who gave the player the "Dratini".

I need major help D=
 
Last edited:
16
Posts
15
Years
  • Seen Oct 4, 2009
i have no idea about movement because i only started lurning this yesterday but im stuck on trying to make a give item pokeball that you would find on the ground in a normal map, using advance map i can get the pokeball on the ground as a person event and i tryed using this script to give be a item:

#dynamic 0x4567D6

#org @start
lock
faceplayer
giveitem 0x44 0x1
release
end

but it does nothing in the game and i also want to you how do i make it disaper after you get the item
ok i got it to give my the item but as soon as i move away it reapers
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
i have no idea about movement because i only started lurning this yesterday but im stuck on trying to make a give item pokeball that you would find on the ground in a normal map, using advance map i can get the pokeball on the ground as a person event and i tryed using this script to give be a item:

#dynamic 0x4567D6

#org @start
lock
faceplayer
giveitem 0x44 0x1
release
end

but it does nothing in the game and i also want to you how do i make it disaper after you get the item
ok i got it to give my the item but as soon as i move away it reapers

Code:
  #dynamic 0x4567D6

#org @start
lock
faceplayer
giveitem 0x44 0x1
hidesprite 0x<pokeball event number>
setflag 0x<flag preferred> 
release
end
Hidesprite does what is says. It makes the people/poke ball disappear. The poke ball event number can be found in Advance Map.
There should be a setflag in order for the item not to be repeated. Place the flag you like. Like, setflag 0x200.
The flag you set, put it in the people ID of the Poke ball in Advance map.(0200 for example)
 

DemonParia

Gangsterfresh Swagmaster
104
Posts
15
Years
  • Seen Oct 6, 2015
#dynamic 0x300000
#org 0x3BB8A1
lock
faceplayer
checkflag 0x202
if 0x0 goto 0x83BB9B1
if 0x1 goto 0x83BB9D7
end

'-----------------------
#org 0x83BB9B1
msgbox 0x83BB8D0 '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
applymovement 0x1 @move
#org @move
#raw 0x65 0x14 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x29 0x60 0xFE
'-----------------------
#org 0x83BB9D7
msgbox 0x83BBA61 '"I'm okay now. I have COINS."
'---------
' Strings
'---------
#org 0x3BB8D0
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org 0x3BBA61
= I'm okay now. I have COINS.






That script is supposed to have a guy at the slot machines, he says that and runs out.

Problem is, he only says the words and doesn't move. What'd I do wrong?
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
You need to have an "end" command after the "applymovement 0x1 @move" line.

Code:
#dynamic 0x300000
#org 0x3BB8A1
lock
faceplayer
checkflag 0x202
if 0x0 goto 0x83BB9B1
if 0x1 goto 0x83BB9D7
end

'-----------------------
#org 0x83BB9B1
msgbox 0x83BB8D0 '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
applymovement 0x1 @move
end

#org @move
#raw 0x65 0x14 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x29 0x60 0xFE

'-----------------------
#org 0x83BB9D7
msgbox 0x83BBA61 '"I'm okay now. I have COINS."

'---------
' Strings
'---------
#org 0x3BB8D0
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!

#org 0x3BBA61
= I'm okay now. I have COINS.
_________________________

Also, it's probably not a good idea to mix Dynamic and Static scripts when you're just starting. >_>
 

VanillaThunderbolt

Generic User Title
94
Posts
15
Years
  • Seen Mar 1, 2012
Just so I could see how things worked with some of these scripts, I went and applied the example script for givepokemon, which was
#org @give
givepokemon 0x1 0x10 0x0 0x0 0x0 0x0

And I know the first 0x0 is Dex/Hex number, and the second is the level.
So why when I applied this script, I get a level 16 Bulbasaur?
Shouldn't it be level 10?
 

DemonParia

Gangsterfresh Swagmaster
104
Posts
15
Years
  • Seen Oct 6, 2015
HEP MEH!

It still doesn't work. When you talk to the guy he says the specified text, but doesn't move. What can I do?!


Code:
#dynamic 0x300000
#org @start
lock
faceplayer
checkflag 0x202
if 0x0 goto @omg
if 0x1 goto @phew
end
'-----------------------
#org @omg
msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
boxset 6
applymovement 0x1 @moves
setflag 0x202
release
end
'-----------------------
#org @phew
msgbox @coin '"I'm okay now. I have COINS."
release
end

'-----------
' Movements
'-----------
#org @moves
#raw 63 'Question Mark (?)
#raw 62 'Exclamation Mark (!)
#raw 65 'Double Exclamation Mark (!!)
#raw 4A 'Face Player
#raw 16 'Jump2 Left
#raw 55 'Jump in Place (Facing Right)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org @ah
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org @coin
= I'm okay now. I have COINS.
 

machomuu

Stuck in Hot Girl Summer
10,507
Posts
16
Years
It still doesn't work. When you talk to the guy he says the specified text, but doesn't move. What can I do?!


Code:
#dynamic 0x300000
#org @start
lock
faceplayer
checkflag 0x202
if 0x0 goto @omg
if 0x1 goto @phew
end
'-----------------------
#org @omg
msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
boxset 6
applymovement 0x1 @moves
setflag 0x202
release
end
'-----------------------
#org @phew
msgbox @coin '"I'm okay now. I have COINS."
release
end
 
'-----------
' Movements
'-----------
#org @moves
#raw 63 'Question Mark (?)
#raw 62 'Exclamation Mark (!)
#raw 65 'Double Exclamation Mark (!!)
#raw 4A 'Face Player
#raw 16 'Jump2 Left
#raw 55 'Jump in Place (Facing Right)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 60 'Hide
#raw FE 'End of Movements
 
'---------
' Strings
'---------
#org @ah
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org @coin
= I'm okay now. I have COINS.
In after applymovement, did you put his event number and not his person number?
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
It still doesn't work. When you talk to the guy he says the specified text, but doesn't move. What can I do?!


Code:
#dynamic 0x300000
#org @start
lock
faceplayer
checkflag 0x202
if 0x0 goto @omg
if 0x1 goto @phew
end
'-----------------------
#org @omg
msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
boxset 6
applymovement 0x1 @moves
[B]waitmovement 0x0[/B]
setflag 0x202
release
end
'-----------------------
#org @phew
msgbox @coin '"I'm okay now. I have COINS."
[B]boxset 0x6[/B]
release
end

'-----------
' Movements
'-----------
#org @moves
#raw 63 'Question Mark (?)
#raw 62 'Exclamation Mark (!)
#raw 65 'Double Exclamation Mark (!!)
#raw 4A 'Face Player
#raw 16 'Jump2 Left
#raw 55 'Jump in Place (Facing Right)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org @ah
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org @coin
= I'm okay now. I have COINS.

Fixes are in Bold. Don't forget to add waitmovement 0x0 under each applymovement, and boxset 0x6 under the normal messages.
 

Oh_Delilah

BiNkY
10
Posts
16
Years
  • Seen Jan 26, 2017
Try this:

Code:
#dynamic 0xoffset

#org @start
lock
faceplayer
msgbox @yesno
callstd 0x5
if 0x1 goto @yes
if 0x1 goto @no
release
end

#org @yes
msgbox @yes2
callstd 0x6
release
end

#org @no
msgbox @no2
callstd 0x6
release
end

#org @yesno
= Yes or no?

#org @yes2
= You pressed Yes!

#org @no2
= You pressed No!

Hey Thanks Madridista. I figured it out now. Thanks again.


Binky
 

DemonParia

Gangsterfresh Swagmaster
104
Posts
15
Years
  • Seen Oct 6, 2015
It still doesn't work. Yes, I'm sure I put the person ID and not the event number. Yes, I did the waitmovement and the box stuff, and it still doesn't work. Why doesn't it work...?
 

Lavarider

Master of all Technology
25
Posts
15
Years
  • Seen Aug 26, 2014
Thanks for this tutorial..It is exactly what I needed to learn for pokescript!
 

DemonParia

Gangsterfresh Swagmaster
104
Posts
15
Years
  • Seen Oct 6, 2015
I AM?! OMG! THANKS!

You are the greatest person in the world and I will worship you as a God for the rest of eternity or until I get tired.

THANK YOUUUUUUUUUU!!!!
 

DemonParia

Gangsterfresh Swagmaster
104
Posts
15
Years
  • Seen Oct 6, 2015
Thanks for this tutorial..It is exactly what I needed to learn for pokescript!


Um, you do realize this isn't a PokeScript tutorial, right? This is an XSE tutorial. I guess you could apply some of this stuff to PokeScript, but if you mess up it could get confusing.

:|
 

hayitsCARLOS

Pokemon Caretaker
20
Posts
15
Years
Okay seriously wth.. >.>
This is gonna sound really nooby, but I'm tired so forgive me.
I open my rom (Pokemon Ruby) in Advance Map and made a new person event, used a Pokeball sprite and opened the script. I delete it all (It's like,
'-----------------------
#org 0x2089DC
nop
nop
nop
(It says nop a ton more times, then
compare 0x714E 0x8200
nop
msgbox4 0x5000CC00
nop
spriteinvisible 0x4001 0x1 0xAE
nop
callasm2 0xF600BB4E
nop
setanimation 0x0 0x2C)

And put in my script, which is:

#Dynamic 0x2089DC

#ORG @GivePokemon
Lock
FacePlayer
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x800
setflag 0x801
setflag 0x860
release
end

#ORG @RecievedPoke
= Hey! A Pokemon!/nAnd a Pokedex!/nAND running shoes!/nWow.. It's my lucky day!

What's going on..? It just keeps deleting my script..
 
16
Posts
15
Years
  • Seen Oct 4, 2009
i dont know if this is the write place to ask but can someone tell me how to rescript the hole start of the rom (fire red) so i can rewrite professer oak speech and also can you tell me how to do the script for the give first pokemon espisaly the multychoice cause iv tryed a couple of times and failed misrible
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Okay seriously wth.. >.>
This is gonna sound really nooby, but I'm tired so forgive me.
I open my rom (Pokemon Ruby) in Advance Map and made a new person event, used a Pokeball sprite and opened the script. I delete it all (It's like,
'-----------------------
#org 0x2089DC
nop
nop
nop
(It says nop a ton more times, then
compare 0x714E 0x8200
nop
msgbox4 0x5000CC00
nop
spriteinvisible 0x4001 0x1 0xAE
nop
callasm2 0xF600BB4E
nop
setanimation 0x0 0x2C)

And put in my script, which is:

#Dynamic 0x2089DC

#ORG @GivePokemon
Lock
FacePlayer
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x800
setflag 0x801
setflag 0x860
release
end

#ORG @RecievedPoke
= Hey! A Pokemon!/nAnd a Pokedex!/nAND running shoes!/nWow.. It's my lucky day!

What's going on..? It just keeps deleting my script..

Can you post your un-compiled script? The original one.
 
Status
Not open for further replies.
Back
Top