• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
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:
    when "g"      # Display gold window
      goldwindow&.dispose
      goldwindow = pbDisplayGoldWindow(msgwindow)
    Put:
    Ruby:
    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
317
Views
2,331
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Vendily

Back
Top