M i n a t o //
Listen to the Stereo
- 295
- Posts
- 17
- Years
- IL, U.S.
- Seen Nov 11, 2012
Can someone tell me what's wrong with this script? It's supposed to give you Togepi, ask if you want to name it, and enable the pokedex/menu.
#org $begin
lock
faceplayer
checkflag 0x200
if B_true goto $gotit
givepokemon 175 5 0
jingle
message $name
$name 1 = Would you like to name Togepi?
boxset 5
compare lastresult b_false
if B_true goto $done
namepokemon
setflag 0x828
setflag 0x829
giveitem 0x4 3
setflag 0x200
release
end
#org $done
lock
faceplayer
setflag 0x828
setflag 0x829
giveitem 0x4 3
setflag 0x200
release
end
#org $gotit
lock
faceplayer
release
end
Umm this belongs in the Script Help thread in the scrapbox but I'll fix it.
Fixes and comments in bold:
Code:
#org $begin
lock
faceplayer
checkflag 0x200
if B_true goto $gotit
givepokemon 175 5 0
jingle [B]I would remove this since pokescript has no jingle command.[/B]
message $name
$name 1 = Would you like to name Togepi?
boxset 5
compare lastresult b_false
if B_true goto $done
namepokemon
setflag 0x828
setflag 0x829
giveitem 0x4 3
setflag 0x200
release
end
#org $done
setflag 0x828 [B]You don't need lock and faceplayer again lol.[/B]
setflag 0x829
giveitem 0x4 3
setflag 0x200
release
end
#org $gotit
release [B]Same as above.[/B]
end