View Single Post
Old January 29th, 2009 (2:32 PM).
Diegoisawesome's Avatar
Diegoisawesome Diegoisawesome is offline
Oh god the bees
  • Silver Tier
Join Date: Dec 2007
Location: :noitacoL
Age: 20
Gender: Male
Nature: Naive
Posts: 1,039
Originally Posted by Mourgrim View Post
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 goto @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 goto @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.
Changes in bold.

My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
The Secret Sauce: Triple-Layer Tiles
Reply With Quote