• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

v20.1 Bank of Mom 2023-01-16

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
This script adds in the Bank of Mom Feature from GSC or HGSS, where the player's mother will save money and occasionally buy items.
The mom attempts to buy an item after the end of every battle, if she can afford one of the MOM_FIXED_ITEMS or MOM_RANDOM_ITEMS.
If she buys an item, she will call the player after the battle ends.

Several additional, required edits in def pbMessageDisplay to add
the mgoldwindow variable, to show how much money the Bank of Mom holds.
  1. Under goldwindow = nil, put mgoldwindow = nil
  2. In the long while text regex, add mg| before g|
  3. Under:
    Ruby:
    Expand Collapse Copy
    when "g"      # Display gold window
      goldwindow&.dispose
      goldwindow = pbDisplayGoldWindow(msgwindow)
    Put:
    Ruby:
    Expand Collapse Copy
    when "mg"    # Display mom gold window
      mgoldwindow&.dispose
      mgoldwindow = pbDisplayMomGoldWindow(msgwindow, goldwindow)
  4. Under goldwindow&.dispose, put mgoldwindow&.dispose
These edits may have to be made to a plugin if one overrides this method.
Credits
Vendily
Author
Vendily
Downloads
521
Views
2,557
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Vendily

Back
Top