The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

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  
Unread March 25th, 2012, 05:23 PM
Derxwna Kapsyla's Avatar
Derxwna Kapsyla
X-Class Project, Derxwna, #003
 
Join Date: Jun 2011
Location: Margate, FL
Gender: Male
Nature: Lax
I know this must be a bit of an awkward question to ask, but:
Is it possible to bind the Debug Menu activator to an item? This makes it easier for mobile testing.
__________________
Development Blog:
For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
Spoiler:


Game Projects:
In Progress:
Spoiler:
Touhoumon Essentials Development Starter Kit for RMXP - Version 1 finished and released.
  • The following version is outdated a great deal. Do not bother downloading it. I will have a new, revised version up eventually.
Touhoumon: Faith and Prayer Version - Demo 2 Released
Reply With Quote
  #2  
Unread March 25th, 2012, 09:43 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Gender: Male
An odd question indeed. Are you suggesting that you want to be able to access the Debug menu while not in Debug mode (i.e. testing it as an actual game)? Why not simply remove the phrase if $DEBUG from the appropriate line in the script section PokemonPauseMenu instead?

For what you want, it is indeed possible. Just stick the following in PokemonItemEffects (the second handler is optional, and used if the item has been registered to the F5 key):

Code:
ItemHandlers::UseFromBag.add(:DEBUGITEM,proc{|item|
   pbFadeOutIn(99999) { 
      pbDebugMenu
      @scene.pbRefresh
   }
   next 1 # Continue
})

ItemHandlers::UseInField.add(:DEBUGITEM,proc{|item|
   pbFadeOutIn(99999) { 
      pbDebugMenu
      @scene.pbRefresh
   }
})
You will probably want to make it a Key Item, otherwise it will be consumed when used.
__________________
Reply With Quote
  #3  
Unread March 26th, 2012, 02:04 AM
Derxwna Kapsyla's Avatar
Derxwna Kapsyla
X-Class Project, Derxwna, #003
 
Join Date: Jun 2011
Location: Margate, FL
Gender: Male
Nature: Lax
Is there any specific location that I should add it in, such as before "x" line?
Edit: Disregard that, I got it working. However, I ran into an error.

Script 'PokemonItemEffects' line 12: NoMethodError occured
undefined method 'pbRefresh' for nil:NilClass
__________________
Development Blog:
For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
Spoiler:


Game Projects:
In Progress:
Spoiler:
Touhoumon Essentials Development Starter Kit for RMXP - Version 1 finished and released.
  • The following version is outdated a great deal. Do not bother downloading it. I will have a new, revised version up eventually.
Touhoumon: Faith and Prayer Version - Demo 2 Released

Last edited by Derxwna Kapsyla; March 26th, 2012 at 02:25 AM.
Reply With Quote
  #4  
Unread March 26th, 2012, 05:05 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Gender: Male
Delete the @scene.pbRefresh line - it's actually unrelated to the debug menu.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links


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. The time now is 04:46 PM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.