- 34
- Posts
- 17
- Years
- Seen Oct 16, 2008
I am attempting to write a script where the player walks up to a pokeball and get a message to choose the pokemon (if he/she wants), and if not, can go to one of the other pokeballs. Basically, I am attempting to write the script from the orignal game (like in fire red, where u can choose).
I currently have:
The problems are:
1) It does not play any sound (jingle)
2) It gives you the pokemon regardless if you said yes or no
3) It does not enable the pokemon menu (as flag 830 should do [or at least I think so])
Any help is greatly appreciated.
I currently have:
Code:
#org $givedragon
checkflag 0x830
if B_true goto $donealready
message $wantdragon
$wantdragon 1 = Do you want the DRAGON pokemon ORMR?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $dontwant
jingle
message $gotdragon
$gotdragon 1 = You got the DRAGON pokemon ORMR!
givepokemon 1 5 0x8
setflag 0x830
release
end
#org $dontwant
release
end
#org $donealready
release
end
The problems are:
1) It does not play any sound (jingle)
2) It gives you the pokemon regardless if you said yes or no
3) It does not enable the pokemon menu (as flag 830 should do [or at least I think so])
Any help is greatly appreciated.