[20.1+] Notebook

v20.1 [20.1+] Notebook 1.0.8

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
This plugin has been tested to work in Pokemon Essentials 20.1. I don't know if it works on 21.

For those that have looked at the wiki about the pokegear, you'll have probably seen the idea of adding a notebook as a pokegear app. Maybe, like me, haven't know how to do it nor have been able to find scripts that do it. Well, I managed to figure out a way to do so thanks to Pokémon holding Mail by Mr. Gela.

This script handles everything to make the notebook work separately from the mailbox (but not the mail) so you can still use it like in pokemon games if you want to. The script comes with the mail items and backgrounds from Black and White to use with it but you can use any background as long as you define a mail item that goes with it.

  1. Drop the contents of the zip in your game's folder.
  2. In the PBS folder, pass the mails items to your Items PBS file.
  3. Pass the notebook item to your Items PBS file (optional).
  4. Erase the script to add the notebook as a pokegear app (optional).
  5. Compile your game.
  6. Start a new game.
  1. Give the player the notebook item or the pokegear app.
  2. That's all.
  1. Download the file "Notebook with icons".
  2. Add the mails with icons to both NOTES_BACKGROUND and ICON_NOTE in the configuration. You can add them directly on the configuration file or by adding them through a script. IMPORTANT: the mail object needs the flag icon mail for this to work.
  3. Open the file "Notebook_Icons" and copy the examples for your mails.
  4. Edit the mail ID and pokémon to your liking. Be aware that the icons display any gender difference, the pokémon's form and if the pokémon is shiny (both super shiny and normal shiny), if it's a shadow pokémon or not and if it's an egg or not.
In the Configuration, set the NOTE_STORAGE_VARIABLE to the number of a variable you don't use. Change the value of the variable to add storage to the base storage.

It could be used, for example, in a shop where the player can purchase pages to stick the notes to.
Use the code NoteConfig::NOTES_BACKGROUND.push(mailID) to add mails to the array. MailID has to be the ID of a mail like this: :GRASSMAIL.

Use this to, for example, create a store where the player can purchase backgrounds.
Add this to an event:
pbMailShop(items, mails)
pbMailShop(items, mails) creates the inventory for the shop and opens it.
pbConvertMailToNote(mails) converts any mail item in the bag into a background for the notebook and the item is deleted from the bag.
items has to be an array of ids.
mails has to be an array of ids.
You can use items and mails to separate normal items from the mail items or use only one.

NOTE: the shop used for this shop has been slightly modified. You can only buy 1 item at a time and the price will change to "Sold out" if you have the item in the bag or you already purchased the background.
item = [:NOTEBOOK]
pbMailShop(item, mails)
pbMailShop(nil, mails)
Note: if this method throws errors or doesn't work as it should (like adding items that aren't mail in the list of backgrounds for the notebook), use the method in example 1.
Use pbPCNotebook for the default mail menu.
Use pbNewNotebookScreen for the new notebook menu.
Use it to add the notebook to the player's PC (you'll have to edit the code to that PC yourself) or on other scripts.



This step should not be necessary any longer since the plugin doesn't alter the player's party anymore.
Search for that line (usually in line 678 if you haven't deleted or added anything) and add if $player.party_count > 0 like in the image below:
Bag with Party error solution.PNG
Mr. Gela for the base script.
Barubary for ripping Black and White mail's background.
redblueyellow for ripping Black and White mail's icons.
wrigty12 for the changes used for the mail shop.
LinKazamine for the script.
First release
Last update
0.00 star(s) 0 ratings

More resources from LinKazamine

Latest updates

  1. Added missing configuration

    Added missing configuration to activate or disable the new notebook scene for Notebook with icons.
  2. 1.0.8

    Fixed the new scene code so it doesn't crash if you don't have FL's controls plugin instaled.
  3. 1.0.7

    Fixed the problem that caused a pokémon to be registered as owned when creating notes.