- 2
- Posts
- 7
- Years
- Seen Jun 3, 2019
Well, I'm starting to get used to scripts. I'm reading diegoisawesome's MEGA-HUGE XSE Scripting Tutorial and even though it helped me so much, some thing i can't figure out.
I wrote this script for the starting town, so i had to settle this battle to happen after MC got his pokemon.
But, after battle ends, the text
So, what i'm doing wrong here?
Or what i should do to skip this message after battle won?
Here's the script:
I wrote this script for the starting town, so i had to settle this battle to happen after MC got his pokemon.
But, after battle ends, the text
appears again, before the give item text.You have a pokemon i can steal? No? Get out of here!
So, what i'm doing wrong here?
Or what i should do to skip this message after battle won?
Here's the script:
Spoiler:
'---------------
#dynamic 0x234C47
#org 0x71CD70
lock
faceplayer
if 0x1 goto 0x8234C1A
msgbox 0x8234A6C MSG_NORMAL '"You have a pokemon i can steal? \n..."
countpokemon
compare LASTRESULT 0x0
if 0x1 goto 0x8234AF0
trainerbattle 0x0 0x4D 0x0 0x8234B34 0x8234B64
msgbox 0x8234BA4 MSG_NORMAL '"Take this and leave me alone! See ..."
release
end
'---------
#org 0x234A6C
= You have a pokemon i can steal? \nNo? Get out of here!
#org 0x234B34
= You have? Let's fight!
#org 0x234B64
= You'll pay for this kiddo!
#org 0x234BA4
= Take this and leave me alone! See ya!
giveitem 0xC5 0x1 MSG_OBTAIN
msgbox @item 0x6
hidesprite 0x800F
release
end
#org @item
=\v\h01 received a Lucky Egg!
#dynamic 0x234C47
#org 0x71CD70
lock
faceplayer
if 0x1 goto 0x8234C1A
msgbox 0x8234A6C MSG_NORMAL '"You have a pokemon i can steal? \n..."
countpokemon
compare LASTRESULT 0x0
if 0x1 goto 0x8234AF0
trainerbattle 0x0 0x4D 0x0 0x8234B34 0x8234B64
msgbox 0x8234BA4 MSG_NORMAL '"Take this and leave me alone! See ..."
release
end
'---------
#org 0x234A6C
= You have a pokemon i can steal? \nNo? Get out of here!
#org 0x234B34
= You have? Let's fight!
#org 0x234B64
= You'll pay for this kiddo!
#org 0x234BA4
= Take this and leave me alone! See ya!
giveitem 0xC5 0x1 MSG_OBTAIN
msgbox @item 0x6
hidesprite 0x800F
release
end
#org @item
=\v\h01 received a Lucky Egg!