The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other I need help with a battle script for my Pokemon Hack

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 27th, 2016 (5:32 PM).
Reclaimer Shawn Reclaimer Shawn is offline
 
Join Date: Oct 2015
Gender: Male
Posts: 12
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:
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?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 27th, 2016 (9:03 PM).
Reclaimer Shawn Reclaimer Shawn is offline
 
Join Date: Oct 2015
Gender: Male
Posts: 12
Also you all, is there a way to check if a battle has been won/lost?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 28th, 2016 (12:30 AM).
Reclaimer Shawn Reclaimer Shawn is offline
 
Join Date: Oct 2015
Gender: Male
Posts: 12
Nevermind. I was able to figure out what the error was in my own way and now I got the script working. It's actually better than what I thought it would be.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:08 AM.