View Single Post
Old January 29th, 2009 (2:19 PM).
Mourgrim's Avatar
Mourgrim Mourgrim is offline
Join Date: Nov 2008
Age: 24
Nature: Rash
Posts: 19
Hello, I've been having some troubles with a script I wanted to start out with. What I want the script to do is:

Yes or no ask if I would like a pokemon
give the pokemon
set flags so it doesn't repeat.

I've tried various different circumstances for this, but everytime something goes wrong. One time, it was in a whole bunch of symbols. Another, it was all placed wrong (even though I used XSE's Text Adjuster) and wouldn't even give the pokemon.

If anyone could offer some help or advice, it'd be greatly appreciated for my first script. Thank you.

This is the one that seemed to come closest to working, but still failed.

#dynamic 0x80000

#org @start
checkflag 0x1000
if 0x1 call @given
msgbox @yesno 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @no 0x2
setflag 0x1000

#org @given
msgbox @given2

#org @yes
compare LASTRESULT 0x6
if 0x1 call @full
givepokemon 0x4 0x4 0x0 0x0 0x0 0x0
msgbox @thanks 0x2

#org @full
msgbox @full2 0x2

#org @yesno
= Yes or no?

#org @given2
= I gave you it already.

#org @full2
= Your party's full.

#org @no
= Okay.

#org @thanks
= Thanks.
Reply With Quote