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

[TehTehTehTeh's] XSE Basic/Medium tutorial

Status
Not open for further replies.
I'm not sure. That's why I'm asking if checkflag 0x16f also means checking if you've got the national dex. However, for running shoes, its a flag.. not a special.. so you just check the flag for the running shoes.
 
Well, I'm still a little confused and need an example script.
I'm fairly new to scripting since XSE is the only scripting tool that works on my computer.
 
@eeveon

#org @start
checkflag 0x82f
if 1 goto @done
setflag 0x82f
message @received
boxset 6
end

#org @done
message @oh
boxset 6
end

#org @received
= You received running shoes.

#org @oh
= Oh, you already have a pair.
 
@eeveon

#org @start
checkflag 0x82f
if 1 goto @done
setflag 0x82f
message @received
boxset 6
end

#org @done
message @oh
boxset 6
end

#org @received
= You received running shoes.

#org @oh
= Oh, you already have a pair.

thanks for showing the example mate, I am too tired to now XD
 
Hm.
I tried to use this script:

Code:
#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @Char
boxset 6
givepokemon 4 5 0 0 0 0
release
end

#org @Char
= I'd better take my CHARMANDER with me!

It works perfectly, but it doesn't make a sound and when I press START, there's no POKEMON (just BAG, [player], OPTIONS, SAVE, EXIT)

Is there a special command to do this?
 
Hey it's 0x828

Try it like this:

#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @Char
boxset 6
givepokemon 4 5 0 0 0 0
fanfare 0x13E
setflag 0x828
release
end

#org @Char
= I'd better take my CHARMANDER with me!

But then it doesn't disappear. Strange (or am I just a noob?)
 
Last edited:
okay for both the charizards try this i just tested it and it works:

#dynamic 0x2DD2BE

#org @givepokemon
checkflag 0x206
if b_true goto @recieved
lock
faceplayer
Message @give
boxset 6
setflag 0x206
givepokemon 1 5 0 0 0 0
fanfare 0x13E
release
end

#org @give
= Here is a Bulbasaur

#org @recieved
lock
faceplayer
message @cheap
boxset 6
release end

#org @cheap
= don't be cheap!

enjoy :3
 
Last edited:
Beta 1 should be out soon enough like a week or two after my beta testers get it ready and bug reports flow in.... Than beta 1 than I hopefully continue this tut!
 
Hey i know that this is the wrong this is the wrong spot to ask this but i can't for the life of me find where i am supposed to put this i need a simple "don't go into the grass till you have a pokemon" script. obviously for XSE i never learnt it before so yeah help :)
 
Ummm, I'm tired lol an yeh...maybe try something like

Code:
#Dynamic 0x80000

#ORG @GrassMaybe

lock
checkflag 0x828
if 0x0 goto @NoEntry
release
end

#ORG @NoEntry
~Talking Script~
~Movement script~

0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol
 
Ummm, I'm tired lol an yeh...maybe try something like

Code:
#Dynamic 0x80000

#ORG @GrassMaybe

lock
checkflag 0x828
if 0x0 goto @NoEntry
release
end

#ORG @NoEntry
~Talking Script~
~Movement script~
0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol

Hey thanks *freaks out* I never learned movement either!!!
so hmm maybe i should talk to Hackmew...
 
movements are easy.
a basic don't go out script would look like this:

#dynamic 0x[offset]

#org @begin
checkflag 0x828
if B_true goto @done
lock
message @stop
boxset 0x6
applymovement 0xFF @1
waitmovement 0
release
end

#org @done
release
end

#org @stop
= I shouldn't go out without\na pokemon!

#org @1
#binary 0x10 0xFE

This will make you go done 1 tile.
Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.
 
movements are easy.
a basic don't go out script would look like this:

#dynamic 0x[offset]

#org @begin
checkflag 0x828
if B_true goto @done
lock
message @stop
boxset 0x6
applymovement 0xFF @1
waitmovement 0
release
end

#org @done
release
end

#org @stop
= I shouldn't go out without\na pokemon!

#org @1
#binary 0x10 0xFE

This will make you go done 1 tile.
Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.


hey omg thank you so much! *crash tackles master_track* you are my new friend!!!
 
Beta 1 is progressing for underground about a week, I just need Mew_Ryn lol. Then Part 4, Flags!
 
movement is done in XSE almost the same way as rubikon except you use @(something)
my example

#dynamic 0x800000

#org @start
applymovement 0x5 @move
end

#org @move
#raw 0x08
#raw 0x08
#raw 0x08
In addition to what Zodiac said, you can also have all the movements on one line, which means less typing:
Code:
#dynamic 0x800000
 
#org @start
applymovement 0x5 @move
end
 
#org @move
#raw 0x08 0x08 0x08 0xFE
 
In addition to what Zodiac said, you can also have all the movements on one line, which means less typing:
Code:
#dynamic 0x800000
 
#org @start
applymovement 0x5 @move
end
 
#org @move
#raw 0x08 0x08 0x08 0xFE

Will this save any byes by putting them all on one line?
 
Status
Not open for further replies.
Back
Top