- 12
- Posts
- 8
- Years
- Seen Sep 17, 2016
Hey guys. I'm trying to make a script for my game. It is going to be a sequel for Pokemon XD. In order to be able to "snag" pokemon, I have to first make a wild pokemon battle seem like a normal battle. Then, after all of the shadow pokemon have cleared, then you get to face the actual trainer battle. My problem is that if I catch/beat/run or do anything with said pokemon, it still shows up. I only want a person to be able to encounter said shadow pokemon once, but I still want to keep the trainer model as the person might snag the shadow, but then lose the normal battle. This is my script so far:
So there it is... Could you guys please tell me what I'm doing wrong?
Code:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x5002
if 0x1 goto @trainer
msgbox @shadow 0x2
wildbattle 0xf9 0x64 0x0
setflag 0x5002
trainerbattle 0x0 0x1 0x0 @see @win
msgbox @loser
release
end
#org @see
= Let's battle!
#org @win
= Darn, you beat me!
#org @loser
= Stop talking to me.\pYou've already beaten me\nenough.
#org @trainer
trainerbattle 0x0 0x1 0x0 @see @win
msgbox @loser 0x2
release
end
#org @shadow
= Shadow Lugia, obliterate!
So there it is... Could you guys please tell me what I'm doing wrong?