- 146
- Posts
- 12
- Years
- CO
- Seen Mar 16, 2023
Thanks! also, how do i make the pokeball disappear?
Hello,
Now I am not the best scripter...At all >_<
but I may be able to help...
First this is how I wrote my "Choice Starter Script"...
Code:
#dynamic 0x800000
#org @start
lock
compare 0x40F0 0x0
if 0x2 goto @snippet1
showpokepic 0x4 0xA 0x3
msgbox @string1 0x5
compare 0x800D 0x1
if 0x1 goto @snippet2
msgbox @string2 0x2
hidepokepic
release
end
#org @snippet1
msgbox @string3 0x2
end
#org @snippet2
hidesprite 0x5
hidepokepic
fanfare 0x13E
msgbox @string4 0x6
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x201
setflag 0x828
setvar 0x40F0 0x3
msgbox @nickname 0x6
release
end
#org @nickname
call 0x1A74EB
return
#org @string1
= Do you want the Fire Pokemon\nCharmander?
#org @string2
= Take another pick then.
#org @string3
= Hope this helped1.
#org @string4
= [player] recieved Charmander!
Now that one is for Charmander if you want to change it to something else then just change
"showpokepic 0x4 0xA 0x3" to the appropriate Pokémon you would like.
Then change "givepokemon 0x4 0x5 0x0 0x0 0x0 0x0" to again the appropriate Pokémon you would like.
Then in A-Map where it says "Person ID:" add "201" and this will make the Pokéball disappear...
Now here is one for Squirtle (just change to Pokémon you want like above)
Code:
#dynamic 0x800000
#org @start
lock
compare 0x40F0 0x0
if 0x2 goto @snippet1
showpokepic 0x7 0xA 0x3
msgbox @string1 0x5
compare 0x800D 0x1
if 0x1 goto @snippet2
msgbox @string2 0x2
hidepokepic
release
end
#org @snippet1
msgbox @string3 0x2
end
#org @snippet2
hidesprite 0x4
hidepokepic
fanfare 0x13E
msgbox @string4 0x6
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x202
setflag 0x828
setvar 0x40F0 0x2
msgbox @nickname 0x6
release
end
#org @nickname
call 0x1A74EB
return
#org @string1
= Do you want the Water Pokemon\nSquirtle?
#org @string2
= Take another pick then.
#org @string3
= Hope this helped1.
#org @string4
= [player] recieved Squirtle!
Just do the same thing as above but with "202" in the A-Map "Person ID:"
Now for Bulbasaur ( or again what ever Pokémon you would like)
Code:
#dynamic 0x800000
#org @start
lock
compare 0x40F0 0x0
if 0x2 goto @snippet1
showpokepic 0x1 0xA 0x3
msgbox @string1 0x5
compare 0x800D 0x1
if 0x1 goto @snippet2
msgbox @string2 0x2
hidepokepic
release
end
#org @snippet1
msgbox @string3 0x2
end
#org @snippet2
hidesprite 0x3
hidepokepic
fanfare 0x13E
msgbox @string4 0x6
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x203
setflag 0x828
setvar 0x40F0 0x1
msgbox @nickname 0x6
release
end
#org @nickname
call 0x1A74EB
return
#org @string1
= Do you want the Grass Pokemon\nBulbasuar?
#org @string2
= Take another pick then.
#org @string3
= Hope this helped1.
#org @string4
= [player] recieved Bulbasaur!
Just do the same thing with this one as the other two...
If you have any problems just let me know...
Also this is for Fire Red only...
Edit* I forgot to mention that you must also change "hidesprite 0x__" to the "Person event no:" in your A-map to the proper person event number...
Last edited: