Maruno
Lead Dev of Pokémon Essentials
- 5,286
- Posts
- 17
- Years
- Seen May 3, 2024
I'm not entirely sure how you're using that code, but I can tell you how to access item storage straight from the PC main menu (where it displays "Bill's PC" and "Player's PC").I want to do a old style item PC without Mailbox. But if I call pbPCItemStorage without a Kernel.pbMessage after, the games freeze! Why? There a fix without I need to use Kernel.pbMessage?
I need to put:
Code:command=1 loop do (command==1 || command==-1) ? pbPCItemStorage : break command=Kernel.pbMessage(_INTL("Exit?"),[_INTL("YES"),_INTL("NO")],-1) end
In the script section PokemonStorage, at the bottom are the PC-related scripts. There are two points where "pbTrainerPCMenu" is called (search for the phrase) - replace those two lines with "pbPCItemStorage" instead. This cuts out the secondary menu asking "Item storage", "Mailbox" or "Turn off", and jumps straight to item storage. Then just use the PCs as normal.
I haven't looked into bridges yet, but it's on my To Do list.
I can vaguely imagine what the fix for secret area nest displays would be (it can also depend on the switch used to decide whether to show that map point or not), but I haven't looked into it yet. It'll probably end up being a bug fix, because secret areas are supposed to be hidden until their switch is ON. Once it's up it'll be on the Region map wiki page.
I don't have any real tips for improving lag, other than using an older version of Essentials. I don't have any lag myself, so I can't experiment myself with improving it, and people are incessantly unhelpful by not providing as much information as possible about where/when they get lag (e.g. certain times of day, current map size/number of events and adjoining maps, after how much game play, what kind of lag, etc.). All I can do is guess at the causes of lag, and they wouldn't be good guesses either.
Shiny. I do like the simple solutions.I'm sorry if I sound impatient, but does no one know what could be wrong? This appears to be an out-of-the-box error for me... I redownloaded Pokemon Essentials with no modifications from the latest version listed on the Wiki and even that version does not want to give me Triad cards. Does anyone have any idea? Sorry for asking twice, but I'd like to at least have some clue how to fix this becuase it really puzzles me... other data stored in $PokemonGlobal variables seem to store fine... for example, the PC works fine.
I could try posting a recording of the issue I'm having if it helps.
AH! Got it, fixed my own problem. If anyone else has this error, it stems on for some reason there being a bug in the code out of the box that reinitializes the triad variable each time it is called... to fix change this line of text:
to this:Code:def triads @triads=TriadStorage.new return @triads end
Code:def triads @triads=TriadStorage.new if !@triads return @triads end
I have added this bug fix to the wiki page Triple Triad, if that's okay by you. Credit to you, of course.
Last edited: