Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Hyper Beam Recharge

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old March 9th, 2013 (05:10 AM).
Fearghall Fearghall is offline
 
Join Date: Mar 2013
Gender: Male
Posts: 6
I'm trying to make it so that Hyper Beam will act in the glitchy way it does in RBY.
So that if an opponent faints after Hyper Beam is used, no recharge is required.
Can anybody give me some pointers on where to begin?
Reply With Quote
  #2    
Old March 9th, 2013 (02:57 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,568
You can begin and end in class PokeBattle_Move_0C2. The attacker's effects[PBEffects::HyperBeam] is set to 2 if the attack does damage. So long as this value is greater than 0, the Pokémon with it is recharging and can't move (it's reduced by 1 at the end of each turn). You want instead to set the value if the attack does damage and the opponent survived the attack.

Think about it.
__________________
Reply With Quote
  #3    
Old March 9th, 2013 (04:17 PM).
Fearghall Fearghall is offline
 
Join Date: Mar 2013
Gender: Male
Posts: 6
It's working just how i want!
Thanks for the direction and advice.
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

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 UTC -8. The time now is 11:01 AM.