forestw785
I divide by 0.
- 60
- Posts
- 15
- Years
- Seen Dec 8, 2010
Spoiler:
//As a bit of notice, Comments are easily noticed as two forward slashes, anything written after them will be ignored.
#dynamic 0x800000 //See, in XSE, you don't have to manually search for free space like
//PokeScript, #dynamic is telling XSE to look for data after 0x800000 in the Rom, useful eh?
#org @start //In XSE, we use @ instead of $
checkflag 0x828
if b_true goto @done //Once again, we use @ instead of $ in XSE
message @1 0x5 //An interesting thing in XSE, we don't have a boxset command. Instead, we just add the boxset number we want after the pointer.
compare LASTRESULT 0x1
if b_true goto @take
message @2 0x6 //Again, notice, instead of a boxset 6, we just add a 6.
release
end
#org @take
givepokemon 4 5 0
fanfare 0x13E
message @3 4
waitfanfare
closeonkeypress //Another cool thing, we have extra commands, instead of having to use #RAW commands... instead of that raw, we use the command closeonkeypress.
setflag 0x828
message @4 6
release
end
#org @name
call 0x1A74EB
return
#org @1 //looky here, you used the wrong slash... I changed it for you, it's \n, not /n
1 =Do you want Charmander.\nThe fire-type Pokémon?
#org @2 /Another interesting thing, when using a message command, you don't need to put the pointer name before any text, compare it to your original script.
= \c\h01\h08OAK: Get one now!
#org @3 //
= \c\h01\h02You received a Charmander!
#org @4
= \c\h01\h02Would you like to rename Charmander?
There we go, that should work fine.
Thank you very much for that. Will the ball disappear after this one time I pick it up? And if I apply the same script, but with certain variables changed for other pokémon would that be okay?