• 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.
Resource icon

Klein's Secret Bases 2020-08-13

Pokémon Essentials Version
v17.2 ➖
This is Klein's Secret base script updated to work with v17 as well as simplified. Now the script uses template maps that are cloned onto the dummy map as a base for the base.
b1y2YB6.png
7E5BKcr.png
eSJ76Ra.png

The download contains all the graphics used for the base, items and scripts, the tileset data as edited off a clean essentials project (you'll have to copy tileset 23 over into your project manually if you aren't using the default tilesets) as well as Map 33, the Items map, and maps 32, 42, and 48, three example template maps.

Usage:
Code:
Expand Collapse Copy
* Creating the secret base map
  - Create a blank map with the Secret base tileset
  - Set SECRETBASEMAP to the blank map id
  - Create template maps that contain 2 events
    * an event with the name DOOR that has "pbExitBase"
       as the only script command
    * an event with a blank first page, and a second page with a script
       command of "pbSecretBasePC" and a switch condition named "s:pbIsMyBase?"
    * See the contained base map templates
    * Holes must be on the second layer

* Creating the entrance for a secret base
  - Event for entrance needs to be called SecretBase(X,Y),
     where X is the id of the base (not map, just identification)
     and Y is the template name (see SECRETBASETEMPLATES's keys)
    * so a base event can be called SecretBase(1,treeSquare), and
       the secret base will load map 32 as a base for the SECRETBASEMAP

* Creating a mart for base items
  - Call pbSecretBaseMart(stock,speech=nil).
    * stock is an array of secret base item names
      ["Brick Desk","Big Plant"] is a valid stock.
      Alternatively, you can use one of methods to get all items of a
      particular type.
       - getAllDesks
       - getAllChairs
       - getAllPosters
       - getAllPlants
       - getAllMats
       - getAllOrnaments
       - getAllDolls
       - getAllCushions

* Creating a locator NPC
  - pbGetBaseLocation(mapname=-1,mapid=-1)
     * Sets game variables mapname and mapid to the map name and mapid
        the secret base is located on.
* Gifting a Base Item
  - pbGetBaseItem(item)
    * item is the secret base item name, in quotes
      "Lapras Doll" is a valid item.
Credits
Klein http://kleinstudio.deviantart.com
For the original script and resources
https://pokemonfangames.com/resource/secret-bases/

Vendily for updating
Author
Vendily
Downloads
899
Views
4,393
First release
Last update

Ratings

5.00 star(s) 5 ratings

More resources from Vendily

Latest reviews

Hi will you make this mod available for the v19.1 pokemon essentials?
In past I used your script, but now I use PE 19.1... Do you update this script for 19.1 soon?
Hi, first thing, sorry for my English.
This script has worked perfectly for me, but I have a little problem that I don't know why it happens.
Sometimes when I add new items, if my character possessed some items, one of the old items is transformed into one of the new items.

For example: If the player had "Wooden Table", "Small Table" and "Large Table" and I add a "Red Cushion", sometimes the "Big Table" becomes "Red Cushion".

It doesn't always happen, but every time I add new items, some of the old ones are modified.

It is only fixed if I throw the items away and buy them again.

PS: maybe it's because when defining them in the code I add them in lines above the old items.

Thank you for this amazing script!
Hello! I loved this script- but I was wondering, do you plan to make an updated version for v18? ^^
V
Vendily
Hi, I've been told that it does work on v18, provided you change some constants to their v18 versions.
TILEHEIGHT to TILE_HEIGHT
TILEWIDTH to TILE_WIDTH
DEFAULTSCREENHEIGHT to SCREEN_HEIGHT
Hello, any plans making this with Gen 4 style graphics? I would love to add this. Thanks for the awesome work!
V
Vendily
Sorry, no plans on that. I don't really want to bundle assets that A) Weren't with the original kit, and B) may be of inconsistent quality.
You're free to compile your own tileset though, the script doesn't really care about that so long as you set the tile ids correctly in the config.
Back
Top