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

Sierra's MEGA-HUGE XSE Scripting Tutorial

5
Posts
14
Years
  • Seen May 15, 2011
ok im having trouble making a yes/no script. here it is:

Spoiler:


When i go to compile it says this:

Spoiler:


Line 7 is the line with the LASTRESULT. Can some one please help?
 
3
Posts
15
Years
  • Seen Mar 19, 2010
The pokenav in emerald replaces the trainer with the new trainer no. However, the trainer is still in a sense not "activated". Is there some kind of flag I can unset to activate trainers?
 
72
Posts
16
Years
im having trouble with my script all together. I just followed the tutorial, but my script is messed up in game. Im trying to get something similar to the parcel script.

Spoiler:


Whenever I step on the script, it just locks, and I can't do anything. I don't know what's going on...
 
5
Posts
14
Years
  • Seen May 15, 2011
did u read the spoiler in the applymovement section? it tells u how to fix it. also at the end of all ur movements u hav to put:

#raw 0xFE
 
26
Posts
14
Years
  • Seen Nov 6, 2016
hey! help me pls!

can someone give me example how to use hidesprite? because when i trying to do, its failed, just turning the screen to black and black to normal but still the sprite is still there...
 
50
Posts
14
Years
  • Seen Aug 21, 2014
hey... What does 'XSE will do the rest' means?

PS: I'm too lazy to find if anyone posted this... Sorry
 

Darkest Shade of Light

Pokémon Midnight Sun
298
Posts
14
Years
Small Problem. I have made a script for givepokemon, and I want the person to give me Mew and disappear. But, he disappears, I take a step, he comes back.
Here's the Script:

'---------------
#org 0xABCDEF
msgbox 0x8ABCFED 0x2 '"[player] received a MEW!"
givepokemon 0x97 0x5 0x8D 0x0 0x0 0x0
msgbox 0x8111111 0x2 '"That is all, goodbye."
fadescreen 0x1
hidesprite 0xFE
fadescreen 0x0
end


'---------
' Strings
'---------
#org 0xABCFED
= [player] received a MEW!

#org 0x111111
= That is all, goodbye.



Note that this was typed purely from memory because I have re-typed this about eighty times. This is also supposed to be for FireRed.
 

Darkest Shade of Light

Pokémon Midnight Sun
298
Posts
14
Years
1) Use dynamic ;)
2) Person keeps appearing 'cause you did not set flag.
You have to use setflag 0x(number) and the same number must be in ID bar of person. (You can edit that with A-Map)
dynamic?
I just recently read about the flag part, so I'm gonna set flag 0x7 for him, and put his people ID like that... Will that work?
 

Darkest Shade of Light

Pokémon Midnight Sun
298
Posts
14
Years
dynamic is dynamic command :D
#dynamic 0x800000 for example ;)
And flag 0x7 is small flag... so it might be used in game...
Flag 0x7 isn't used. Just thought I'd letcha know. But, question: Would this work:
'---------------
#dynamic 0x777777
#org 0xABCDEF
msgbox 0x8ABCFED 0x2 '"[player] received a MEW!"
givepokemon 0x97 0x5 0x8D 0x0 0x0 0x0
closeonkeypress
msgbox 0x8111111 0x2 '"That is all, goodbye."
closeonkeypress
fadescreen 0x1
hidesprite 0xFE
fadescreen 0x0
setflag 0x7
end


'---------
' Strings
'---------
#org 0xABCFED
= [player] received a MEW!

#org 0x111111
= That is all, goodbye.



This would, of course, also have his people ID as 0007. So, would that work:? <-I like that smiley! (:?)
 
Last edited:
2
Posts
15
Years
  • Seen Mar 23, 2014
Apply Movement-- Don't get it...

So i made an apply movment script but when my guy steps on it nothing happens.
The one i made before made the bag from professor Birch's attack appear over and over and doesn't make the other sprite appear.

SCRIPT:
#dynamic 0x808455

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x08 @move
waitmovement 0x0
pause 0x20
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
showsprite 0x903
release
end

#org @move
#raw 0x01
#raw 0xFE
#org @1
= ???: Hmmmm...\nI see you defeated the gym leader\l...
#org @2
= ???: Theres something outside\nI think you should take a look\l...
#org @3
= ???: There's no way a novie like\nyou can resist a Rock Tomb\l...


I put everything where it's supposed, at least I'm pretty sure. I set the flags in the Person ID and made sure that the event numbers are what they should be.
What should I do?

Script Info Person Info Show Sprite Info
Unknown: 0300 Person Event Number: 8 Person Event Number:9
Var Number: 4050 Person ID: 0000 Person ID: 0903
Var Value: 0000
Unknown: 00 00
 
10
Posts
14
Years
I've got this script for the starter part ( 1st beta ) of my game. When you activate the script everything works perfectly, you go into battle, when you win your rival goes off in a huff and then the script ends. Everything seems okay but as soon as you walk on the tile that initially started the script the game freezes up with the music continuing. Help appreciated :)

#dynamic 0x71D800

#org @qetuo
checkflag 0x201
if 0x0 goto @igdub21
if 0x1 goto @ftfbtdi
end

#org @igdub21
lock
applymovement 0x01 @abcdefg
waitmovement 0x0
msgbox @wtfdygap 0x6
trainerbattle 0x1 0x146 0x0 @GoJUKKK @aigmawls @aftertehbattle
end

#org @aftertehbattle
msgbox @woahuabmismpw 0x6
applymovement 0xFF @imoves
applymovement 0x01 @hemoves
waitmovement 0x0
hidesprite 0x01
setflag 0x201
release
end

#org @ftfbtdi
end

#org @abcdefg
#raw 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0x11 0x12 0x62 0xFE

#org @wtfdygap
= [RIVAL]: Excuse me, your blocking\nmy path.\l...\lWHAT!!!\lYou got a pokemon!\lYou...you...your the new\lguy though. You just got here.\lKray dosen't even know you.\lYou're not ready, you've had no\lpreparation ... ... ...\lNo preparation makes for an easy\lwin. This battles mine!

#org @GoJUKKK
= [RIVAL]: Go my special pokemon!

#org @aigmawls
= [RIVAL]: But...but...my preparation...

#org @woahuabmismpw
= [RIVAL]: What!?!\nYou fluked a win!?!\lThis can't be.\lBeaten by the new kid.\lWell I'll train more and beat you\lnext time I see you.\lI'm off anyway.\lProffessor Kray has something for me.

#org @imoves
#raw 0x10 0x01 0xFE

#org @hemoves
#raw 0x23 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE

Thanks in advance :D
 
Back
Top