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

PokemonBroski

I'm Back for Good!
96
Posts
15
Years
i used a script and it works
its just after I use it it keeps activating
how can I turn the script off after I activate the first time
 

James-K

James -K-
3
Posts
15
Years
No Problem :)


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x39 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
msgbox @yay
boxset 0x6
release
end

#org @sry
msgbox @sorry
boxset 0x6
end

#org @here
= Here Take This!

#org @sorry
= I can't give you anymore.
 

Jordy San

The fire-breathing Dutch-Boy
292
Posts
15
Years
No Problem :)


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x39 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
msgbox @yay
boxset 0x6
release
end

#org @sry
msgbox @sorry
boxset 0x6
end

#org @here
= Here Take This!

#org @sorry
= I can't give you anymore.


AHA! A much made problem. Your using the newest XSE right?
In this version, the guide needs to be slightly adjusted.
Instead of typing: (It's just an example.)
Code:
msgbox @msg
boxset 0x6

you need to type this:
Code:
msgbox @msg 0x6

That's what the parameter error is about.
Hope this helped you ot ;)

Jordy-san
 

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
Seriously, didn't I JUST post that a few posts ago? Why did you just answer that person, when I just posted the answer a few posts ago!
Anyways, this is a question for RaiRai_Kun
I was wondering when your next update will be, there are still a bunch of subjects to be covered on XSE so...
 

Jordy San

The fire-breathing Dutch-Boy
292
Posts
15
Years
sorry, i looked over it. And i know it is a question to RaiRai, but i thought i just answered because it is posted a while ago.
But if you guys don't want it, i won't do it next time.
 

PokemonBroski

I'm Back for Good!
96
Posts
15
Years
can you make a script where you can give the player a Pokedex
I need one for my game
PM it to me please if anyone knows it
thanks
 

Poke_a_Dialga!

EXAMS TESTS AND EXAMS QAQ
401
Posts
15
Years
I NEED HELP! :(
It should work this way: When you pick yes, you'll get you Pokemon and the text will go off. When you talk to the guy who gave you the pokes, he will say........................................................go away....... but instead when i pick yes, this happens:


#dynamic 0x800000
#org @main
lock
faceplayer
msgbox @textdata 0x5
compare LASTRESULT 0x1
if 0x1 goto @Yes 0x3
msgbox @No 0x2
end
#org @Yes
msgbox @Yes2 0x2
checkflag 0x1019
if 0x3 call @nomore
givepokemon 94 8 0 0 0 0
setflag 0x1019
end
#org @textdata
= I hate this Pokemon.\nDo you want it?
#org @No
= I knew you wouldn't want it...
#org @Yes2
= Thanks for taking it...
#org @nomore
msgbox @msg 0x4
end
#org @msg
= ............\n...............\n.....................\n...go away...
 
Last edited:
9
Posts
16
Years
  • Seen May 4, 2022
Okay this is driving me CRAZY!..
I've tried my own script AND just used the example scripts to test..

BUT NOTHING HAPPENS O_O..
Even if i compile the example script from here on my script tile's offset nothing happens.
I've put the numbers in AdvancedMap(var value and unknown thingy..) and it just walks by..
If i don't put in those numbers it freezes (That's better than just NO reaction at ALL.)

Code:
#dynamic 0x800000

#org @start
checkflag 0x1011
if 0x0 goto @movement
if 0x1 goto @end
end

#org @movement
applymovement 0xFF @move
call 0x800C39
release
end

#org @end
release
end

#org @move
#raw 0x02
#raw 0xFE

Even though multiple example scripts dont work either.. is my script good? I've been doing this for 3 days now >.<
 

Ancalagon the black

map hacker extrodinare
3
Posts
15
Years
  • Age 31
  • Seen Mar 11, 2009
is helping very very very much!!

but still having difficulty figuring it
 
Last edited:
32
Posts
15
Years
  • Seen Feb 2, 2012
i have a problem when i click debug on XSE this is what comes up


error 13 type mismatch on line 16 #define


heres the script

#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @package 0x6
msgbox @brt 0x6

msgbox @came 0x6
msgbox @strange 0x6
msgbox @found 0x6
msgbox @letter 0x6
msgbox @what1 0x6
msgbox @what2 0x6
msgbox @letter2 0x6
givepokemon 282x 25x 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
msgbox @why 0x6
msgbox @truth 0x6
msgbox @noway 0x6
msgbox @hidden 0x6
msgbox @Love 0x6
msgbox @p 0x6
msgbox @2 ox6
msgbox @wa 0x6
msgbox @Pooa 0x6
msgbox @la 0x6
msgbox @peopl 0x6
msgbox @pal 0x6
release
end








Please help
 

Dragonmaster91

It's just common sense!
220
Posts
16
Years
  • Age 41
  • Seen Jul 24, 2010
i have a problem when i click debug on XSE this is what comes up


error 13 type mismatch on line 16 #define


heres the script

#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @package 0x6
msgbox @brt 0x6

msgbox @came 0x6
msgbox @strange 0x6
msgbox @found 0x6
msgbox @letter 0x6
msgbox @what1 0x6
msgbox @what2 0x6
msgbox @letter2 0x6
givepokemon 282x 25x 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
msgbox @why 0x6
msgbox @truth 0x6
msgbox @noway 0x6
msgbox @hidden 0x6
msgbox @Love 0x6
msgbox @p 0x6
msgbox @2 ox6
msgbox @wa 0x6
msgbox @Pooa 0x6
msgbox @la 0x6
msgbox @peopl 0x6
msgbox @pal 0x6
release
end








Please help
You are not supposed to click debug, you are supposed to click compile. If the problem continues, post your script.
 

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
givepokemon 282 25 0 0 0 0
The problem was, like XSE said, on line 16 of the script. I assume you want to give a lv25 gardevoir in this script? Look at what I edited here on this line.
In XSE, you don't need to use 0x for command parameters. Use the line of code in the quote above, THAT, will work.
Actually READ the errors, they make sense... :t157:

checkflag 0x1011
if 0x0 goto @movement
checkflag 0x1011
if 0x1 goto @end
Remember, you have to use checkflag EVERY time that you want to check a flag. Try that instead!
 
Last edited:

Zanny77

I'm back, baby!
259
Posts
15
Years
Okay, I had managed to get my first script working, but now I'm trying to put in two more scripts. Thing is, whenever I talk to them, they say the same as the first guy! I have the 1st guy's offset as 800000, the 2nd as 800001, and the 3rd as 800002.
 

~Poke~

Hasn't played 5th gen yet.
331
Posts
16
Years
Ok, this is my first script, but it doesn't do anything when I step on the script tile. Made in XSE

Spoiler:


It's meant to make Darkrai move off the bottom of the screen then talk, then warp to your house (dream)

EDIT: Ok, I've inserted it again, and now it freezes...

I posted that in the script help thread, but no-one's helped me... Can you help?
 
4
Posts
15
Years
  • Seen Oct 21, 2012
okay i know this is a stupid question but i can't figure it out
once i've written/changed the script how do i apply it to the rom?
it asks me to save so i do in the same folder but it doesn't change anything - i think i can do the script but i can't save it!! its frustrating the hell out of me
 

mattattack

Huh, Son?
184
Posts
16
Years
I actually have a script for getting a pokeball sprite (item)

#dynamic 0xoffset

#org @masterball
lock
msgbox @ugotmasterball
fanfare (forget the number i got it in my script)
waitfanfare
setflag 0x200
hidesprite 0x01
release
end

#org @ugotmasterball
= You got a Masterball!

(note: their may be some stuff i'm missing from my original script)
 
Status
Not open for further replies.
Back
Top