- 3
- Posts
- 13
- Years
- Seen Aug 17, 2010
First, use spoilers (just put [SPOILER*] before and [/SPOILER*] after the script, minus the asterisks), it's in the rules.
Second, I highly recommend that you switch to XSE. It's not at all hard to learn after you've gone through the Pokescript basics, it's much more efficient, far less buggy, and people won't despise you for using it.
Now, as for the script, there are a couple of problems I can see (keep in mind this isn't my forte).
First, $yup needs to be a separate segment, so move it down. Second, it would be best to have a "closeonkeypress" command before "release, end" in $finish, to get rid of that box, though I'm not sure if that command works for Pokescript or not. You can always just add another message, like "Oh, okay then," instead.
Corrections in bold, I'm doing the extra message for now.
Spoiler:
#org $start
lock
faceplayer
message $yup
boxset 5
compare LASTRESULT 1
if B_FALSE goto $finish
givepokemon (pokemon #) 10 0
setflag 0x(person id)
#raw 0x53
#raw 0x(person event #)
#raw 0x00
release
end
#org $finish
msgbox $nope
boxset 6
release
end
#org $yup 1
= Would you like this (pokemon)?
#org $nope 1
= Oh, okay then... '(It should also be noted that I'm not sure this is the right way to write strings in Pokescript...)
...
I have no idea what the #raws are for here. What was your intention with these?
So I took your advice and added the extra messsage. I am currently using XSE but this particular script was made with notepad. The #raws were supposed to make the sprite dissapear so the player couldn't keep coming back for free pokemon. I've never attempted making the sprite disappear but after a little research, that's what I found.