@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.
#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!
#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!
I don't understand...
252525252525
#Dynamic 0x80000
#ORG @GrassMaybe
lock
checkflag 0x828
if 0x0 goto @NoEntry
release
end
#ORG @NoEntry
~Talking Script~
~Movement script~
Ummm, I'm tired lol an yeh...maybe try something like
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 lolCode:#Dynamic 0x80000 #ORG @GrassMaybe lock checkflag 0x828 if 0x0 goto @NoEntry release end #ORG @NoEntry ~Talking Script~ ~Movement script~
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.
wrong, you should always end movements with #raw 0xFE, so the game knows when to stop, otherwise it'll crash.#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: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
#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