The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Scripting

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 June 4th, 2014 (11:27 AM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Hello, In my hack I'd like to have a battle where your obligated to loose, however, I don't want you to be teleported to the Pokémon Center.
I think it's possible, because (correct me if I'm wrong), I've seen it in Ash Grey
If it's not even possible, then if I use "setflag" after "trainerbattle", and the player loses, will it still set the flag?
Thanks for your time, hope you can help me :)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:36 AM).
Mrakbarman's Avatar
Mrakbarman Mrakbarman is offline
The Jolly Juvenile
 
Join Date: Apr 2012
Location: Dubai, UAE
Gender: Male
Nature: Serious
Posts: 13
Yeah I'm interested to know this as well. Btw is it possible to make the CPU use a rare candy in battle on his fainted pokemon?
__________________
I'm Akbar Hasan, A Jolly Juvenile.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:41 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
You can use trainer battle 0x9, however that has some speech over the top as it is the tutorial battle system. Don't know if that'll work for you!

In a normal battle (0x1 in this case) a flag won't be set in the 'later' part of a script if you lose. You can set the flag before the battle, however!

@above I don't understand why you'd even want that o__o? I don't think such specific AI can work in a battle. You'd normally end the battle, let the script continue (saying he's using rare candy/revive) then start another battle with altered pokemon.
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:41 AM).
eeveeandmew's Avatar
eeveeandmew eeveeandmew is offline
 
Join Date: Jan 2014
Gender: Female
Nature: Lonely
Posts: 465
one, im interested too. two, a rare candy? don't you mean a revive?
lol im to slow at posting.
__________________
x fc: 5327-1324-7691
grass type safari


I'm BACK people! It has been a long time since I've been on here.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:46 AM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Quote:
Originally Posted by Magic View Post
You can use trainer battle 0x9, however that has some speech over the top as it is the tutorial battle system. Don't know if that'll work for you!

In a normal battle (0x1 in this case) a flag won't be set in the 'later' part of a script if you lose. You can set the flag before the battle, however!

@above I don't understand why you'd even want that o__o? I don't think such specific AI can work in a battle. You'd normally end the battle, let the script continue (saying he's using rare candy/revive) then start another battle with altered pokemon.
Forget the flag part, I didn't quite understand, if I do a script that goes on after the player lost, will the script continue or not?
I believe not, but do you think it would work if I used pokeheal?
Probably not aswell.
You may have answered me already but if so I didn't catch it (pokepun), could you explain again please?
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:49 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
If you use the scripting command 'trainerbattle 0x9' then the script continues even if you lose. But, as I said, there is some tutorial talk by Oak on that version. A normal trainer battle script will not continue if you lose.

Do you mean the healing special? The script wouldn't continue long enough for that to kick in so no that wouldn't work :(.
__________________
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:54 AM).
Mrakbarman's Avatar
Mrakbarman Mrakbarman is offline
The Jolly Juvenile
 
Join Date: Apr 2012
Location: Dubai, UAE
Gender: Male
Nature: Serious
Posts: 13
Hey, guys, just to explain why I specifically needed a rare candy: Theres a character that called 'Trickster' that uses a self destruct electrode and revives it on the second turn using a rare candy. Basically, his purpose indirectly teaches the player new shortcuts/tricks on pokemon items and moves. Needless to say, he is a trickroom user.
Sorry for the long elaboration.
__________________
I'm Akbar Hasan, A Jolly Juvenile.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old June 4th, 2014 (11:59 AM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
Quote:
Originally Posted by Magic View Post
If you use the scripting command 'trainerbattle 0x9' then the script continues even if you lose. But, as I said, there is some tutorial talk by Oak on that version. A normal trainer battle script will not continue if you lose.

Do you mean the healing special? The script wouldn't continue long enough for that to kick in so no that wouldn't work :(.
Ok, thank you very much, the way I understood the first time made me think that trainerbattle 0x9 was a scripted battle just as say, Wally catching a ralts on emerald/ruby/sapphire
I'll defenitly look into it

Quote:
Originally Posted by Mrakbarman View Post
Hey, guys, just to explain why I specifically needed a rare candy: Theres a character that called 'Trickster' that uses a self destruct electrode and revives it on the second turn using a rare candy. Basically, his purpose indirectly teaches the player new shortcuts/tricks on pokemon items and moves. Needless to say, he is a trickroom user.
Sorry for the long elaboration.
Rare candy gives you an extra level, I believe you mean revive, or max revive
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old June 4th, 2014 (12:10 PM).
Mrakbarman's Avatar
Mrakbarman Mrakbarman is offline
The Jolly Juvenile
 
Join Date: Apr 2012
Location: Dubai, UAE
Gender: Male
Nature: Serious
Posts: 13
Hey, Jose, it actually is a legitimate trick! You can actually use a rare candy to revive a dead pokemon. I found this out by accident and its a pretty nifty trick and this is the reason why I created the trickster character, to show people unique tricks even hard-core fans don't know about!
__________________
I'm Akbar Hasan, A Jolly Juvenile.
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old June 4th, 2014 (12:18 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Maybe the trickster can just explain it :). Tbh it's not a very useful thing since it'll be revived with such little health and would need healing anyway!
__________________
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old June 4th, 2014 (12:25 PM).
Mrakbarman's Avatar
Mrakbarman Mrakbarman is offline
The Jolly Juvenile
 
Join Date: Apr 2012
Location: Dubai, UAE
Gender: Male
Nature: Serious
Posts: 13
Hello, Magic, I just wanted to remind you that the electrode only has the self destruct move. Hope you got the strategy behind him.
__________________
I'm Akbar Hasan, A Jolly Juvenile.
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old June 4th, 2014 (12:31 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Quote:
Originally Posted by Mrakbarman View Post
Hello, Magic, I just wanted to remind you that the electrode only has the self destruct move. Hope you got the strategy behind him.
Yes I know but it's still going to die easily ;; demonstration of strategy, on a battle, only really works if the player is oblivious to what's happening and doesn't try and stop it. Plus... I doubt a player would want to waste a rare candy over a $1500 revive - so although the strategy might be there I don't understand the importance of rare candy as well xD. Too many things in one!!
__________________
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old June 4th, 2014 (12:40 PM).
Mrakbarman's Avatar
Mrakbarman Mrakbarman is offline
The Jolly Juvenile
 
Join Date: Apr 2012
Location: Dubai, UAE
Gender: Male
Nature: Serious
Posts: 13
Yeah, I see where your coming from. Anyways, thanks for the feedback.
On a side note, is there any tricks you guys have found in the games? I need more ideas.
__________________
I'm Akbar Hasan, A Jolly Juvenile.
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old June 4th, 2014 (1:46 PM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
Two things.

First, to the original question, apart from the text tutorial involved with trainerbattle 0x9, there is no way to make a script continue after a trainer battle is lost. You always go back to the last healing place.

Second, the rare candy strategy is an impossibility. While it is true that a rare candy can be used to revive a fainted Pokémon, a rare candy can only be used outside of battle. Therefore, it would be useless to a trainer, and would not be able to be used like you want.
__________________
What are you so afraid of?
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:09 AM.