• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Klein's Secret Bases

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.
Spoiler:

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:
* 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 https://kleinstudio.deviantart.com
For the original script and resources
https://pokemonfangames.com/resource/secret-bases/

Vendily for updating

Get the download here!
 
Is it possibly with this mod to get Secret Bases from friends and battle them, like in Pokémon Ruby/Sapphire/Emerald?
 
Is it possibly with this mod to get Secret Bases from friends and battle them, like in Pokémon Ruby/Sapphire/Emerald?

At the moment, no. I only ended up updating this script to v17, and I'm not really sure how I'd handle that kind of thing anyways, since Fangames don't really have connection built in and you probably will want to send lots of data at once.

Though if you do want to attempt it, you must know that the array that saves the base is still set up to save based of the map id (like the original script), so all secret bases will share the same dummy map. You should change it to instead save based on base ID instead, so if you do implement it, you won't overwrite the secret base of the player.

Sorry to disappoint though.
 
Back
Top