The PokéCommunity Forums Fan Games Game Development Scripts, Tutorials & Tools
Essentials Script Secret Bases

Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old June 26th, 2015 (11:15 AM). Edited August 29th, 2015 by KleinStudio.
KleinStudio's Avatar
KleinStudio KleinStudio is offline
     
    Join Date: Jun 2015
    Location: Spain
    Gender: Male
    Posts: 52

    Not too much to explain; a secret bases add-on.
    I decide to make a demo instead of a zip file with the script and stuff because it's a little hard to explain everything. I think a little demo where you can see how to make marts for secret base items, gift them, make secret bases, etc, is fine.

    If after read this and instructions still have questions, ask me.
    DOWNLOAD: http://pokemonfangames.com/script.php?id=10

    How to use in your own project
    1. Copy the "Secret Bases" script and place it in your project.
    2. Copy the [BS]Items map and place it in your project
    3. Modify ITEMSMAP value in Secret Bases script and write the new id for [BS]Items map.
    4. Copy the tileset and characters if you need/want them. You can always use your own tileset and characters.
    __________________
    Reply With Quote
      #2    
    Old November 24th, 2015 (10:57 AM). Edited November 24th, 2015 by Maruno.
    Richard PT's Avatar
    Richard PT Richard PT is offline
       
      Join Date: Aug 2014
      Location: Portugal
      Gender: Male
      Nature: Calm
      Posts: 123
      Can i change the terrain tags?

      I have an issue with the secret bases decoration. I can't put the decorations on the floor and walls, i tested with your terrain tags and with my new terrain tags and nothing works. And another thing: mats with animations like jump mat, spin mat and so one they didn't appear in mart and when i tried to put them on the floor, they are invisible, but i checked all codes and there is no problem. So i don't know what i must do. I will continue checking the scripts for errors again. Anyway if you could help me in this matter, i thank you.
      __________________
      Reply With Quote
        #3    
      Old November 25th, 2015 (11:36 AM).
      jchumillas jchumillas is offline
         
        Join Date: Sep 2015
        Gender: Male
        Posts: 12
        A lot of thanks!!

        Muchas gracias paisano!! Le he echado un vistazo a la demo y está cojonuda!
        Reply With Quote
          #4    
        Old November 26th, 2015 (3:26 AM).
        KleinStudio's Avatar
        KleinStudio KleinStudio is offline
           
          Join Date: Jun 2015
          Location: Spain
          Gender: Male
          Posts: 52
          Quote:
          Originally Posted by Richard PT View Post
          Can i change the terrain tags?

          I have an issue with the secret bases decoration. I can't put the decorations on the floor and walls, i tested with your terrain tags and with my new terrain tags and nothing works. And another thing: mats with animations like jump mat, spin mat and so one they didn't appear in mart and when i tried to put them on the floor, they are invisible, but i checked all codes and there is no problem. So i don't know what i must do. I will continue checking the scripts for errors again. Anyway if you could help me in this matter, i thank you.
          Do you have those issues in the demo too? You only can place posters in walls and non-dolls/pushion items in floor (unless you enable DOLLSEVERYWHERE). About the spin map etc I ask you the same question: do you have that issue in the demo?
          And sure, you should be able to modify the terrain tags without any problem ;)
          __________________
          Reply With Quote
            #5    
          Old November 26th, 2015 (11:27 AM).
          Richard PT's Avatar
          Richard PT Richard PT is offline
             
            Join Date: Aug 2014
            Location: Portugal
            Gender: Male
            Nature: Calm
            Posts: 123
            In the demo, all things works well. But in my game, i copy the script and add it. then i changed the items, and i added the tile codes and etc and i added the shops, but all this changes worked well without problem. My problem is:

            1- i changed 2 lines were is mentioned terrain tags for ground (21) and walls (22).
            2- When in shop or when my char is in "decorations mode" the mats with animations are invisible.
            I only have this mats in tileset and events.

            So, i don't know what is wrong. If you don't know the problem i can send to you my secret base script, so you can see by yourself. Another thing, i put the ground and walls in layer 2.
            __________________
            Reply With Quote
              #6    
            Old November 27th, 2015 (4:15 AM).
            KleinStudio's Avatar
            KleinStudio KleinStudio is offline
               
              Join Date: Jun 2015
              Location: Spain
              Gender: Male
              Posts: 52
              I tried to do the same in a clean copy of Essentials, I copied the script, the tileset and the map with the items (modifying the ITEMSMAP variable too after this), then I modified the terrain tags and it's working for me.
              Anyways, send me the script if you want me to test it.
              __________________
              Reply With Quote
                #7    
              Old April 9th, 2016 (1:14 PM). Edited April 10th, 2016 by Kaito123.
              Kaito123 Kaito123 is offline
                 
                Join Date: Jul 2012
                Gender: Male
                Posts: 62
                Hi,

                I want to have this Shelf (look at the picture). But I can't move it at this place. How can I fix it?

                EDIT: And how can I add new categories like Furniture or Bedroom?
                Attached Images
                File Type: png Screenshot 2016-04-09 23.11.17.png‎ (8.6 KB, 51 views) (Save to Dropbox)
                Reply With Quote
                  #8    
                Old April 20th, 2016 (12:13 AM).
                PunkPhantom's Avatar
                PunkPhantom PunkPhantom is offline
                "midna's a cat" -vinny, vinesauce
                   
                  Join Date: Mar 2014
                  Age: 23
                  Gender: Female
                  Nature: Naive
                  Posts: 79
                  Is there a way to make it so you can make a secret base without having to use a move?
                  __________________
                  POKEMON ABSOLUTION
                  coming soon
                  Reply With Quote
                    #9    
                  Old July 25th, 2016 (11:43 PM).
                  caden947's Avatar
                  caden947 caden947 is offline
                     
                    Join Date: May 2015
                    Posts: 5
                    This happens every time I try to download the demo

                    Fatal error: Out of memory (allocated 64749568) (tried to allocate 262209 bytes) in /homepages/17/d602119649/htdocs/PFG/resource.php on line 54

                    Even when I tried to download some of the other stuff (map exporter, ect), the same thing happens.
                    Reply With Quote
                      #10    
                    Old September 13th, 2016 (9:53 AM).
                    Jttyzzle's Avatar
                    Jttyzzle Jttyzzle is offline
                    Waifufag
                       
                      Join Date: Jun 2016
                      Location: Texas
                      Gender: Male
                      Posts: 131
                      Would it ever be possible to have a QR-Code system for bases, like ORAS? Those psuedo-online features are neat, but I'm not sure if Essentials or the Secret Base script would be capable of something like that. Any thoughts?
                      Reply With Quote
                        #11    
                      Old September 13th, 2016 (1:17 PM).
                      komaoto's Avatar
                      komaoto komaoto is offline
                         
                        Join Date: Mar 2014
                        Location: Brazil
                        Gender: Male
                        Posts: 128
                        It's working perfectly on Essentials 16.2.
                        Aside from characters and tileset, you need also copy/past the pictures:
                        sbWall up to secretMartScreen.
                        Those are placed into Graphics>Pictures in the demo folder.

                        Thanks for this awesome script!
                        Reply With Quote
                          #12    
                        Old November 20th, 2016 (6:15 PM). Edited November 20th, 2016 by Kazooo.
                        Kazooo Kazooo is offline
                           
                          Join Date: Nov 2016
                          Posts: 12
                          How do you add another furniture category?
                          Reply With Quote
                            #13    
                          Old July 5th, 2017 (11:21 AM).
                          Ulithium_Dragon's Avatar
                          Ulithium_Dragon Ulithium_Dragon is offline
                             
                            Join Date: Jul 2015
                            Gender: Male
                            Nature: Timid
                            Posts: 88
                            I'm having some trouble figuring out how to add new secret base items.

                            I correctly appended the script and all that, and the new items are showing up in the vendor NPCs, and can be placed in the bases and all that, it's just that they're kinda... scrambled. I cannot seem to figure out what is actually controlling which sprite gets applied to which item:

                            Spoiler:



                            I followed the tile ID convention correctly, and appended the Bases.png tilesheet and all that, but it I cannot find any correlation between the code and the sprites being used, as it seems like they were just... randomized.

                            ---------------------------------------------------
                            On a different note, I saw that you had no Arrow sprite for Green, just one for Red, and the code was not set up to parse gender differences in the PC. So I created a arrow sprite for Green:



                            If you want to use this, you'll need to edit the script a bit. Find the "def getSecretArrow" function and replace it with this:
                            Code:
                              def getSecretArrow
                                if $Trainer.gender==1
                                  bitmapname=_INTL("Graphics/Pictures/secretBaseArrow_Green{1}",$Trainer.metaID)
                                  return BitmapCache.load_bitmap(bitmapname)
                                else
                                  bitmapname=_INTL("Graphics/Pictures/secretBaseArrow_Red{1}",$Trainer.metaID)
                                  return BitmapCache.load_bitmap(bitmapname)
                                end
                              end
                            ...Then rename the old "secretBaseArrow.png" to "secretBaseArrow_Red1.png", and name my new sprite to "secretBaseArrow_Green1.png".
                            Reply With Quote
                              #14    
                            Old July 25th, 2017 (12:52 PM). Edited October 9th, 2017 by Ulithium_Dragon.
                            Ulithium_Dragon's Avatar
                            Ulithium_Dragon Ulithium_Dragon is offline
                               
                              Join Date: Jul 2015
                              Gender: Male
                              Nature: Timid
                              Posts: 88
                              I ended up just brute-force fixing the Name/Icon mismatch issue by manually swapping the names to match the sprites for the entry shown in-game (which sucked and took hours).

                              They all work now fine now, but no longer use the correct TileID on the Bases.png sheet. Can't really say why this happened, but I guess maybe it's due to a bug in the script? Well doesn't really matter I suppose.

                              Figured I'd also go ahead and share my expanded Secret Base item sheet here. I included all the Pokedolls from R/S/E (some were not included originally), as well as all of the dolls added in Diamond/Pearl (some of which I had to downscale to fit the size constraints of Gen III, as they were too large to fit into a single tile). Also included is a custom Tent sprite I made (a yellow variant of the usual red and blue ones from R/S).

                              Spoiler:


                              *Rename image file to "bases.png" after downloading.

                              Pokedoll Character Sheets:
                              Spoiler:


                              *Rename image file to "pokedoll000.png" after downloading.


                              *Rename image file to "pokedoll001.png" after downloading.


                              *Rename image file to "pokedoll002.png" after downloading.


                              *Rename image file to "pokedoll003.png" after downloading.


                              *Rename image file to "pokedoll004.png" after downloading.
                              The Pokedoll sprites go into the "Graphics/Character" folder.

                              The last PokeDoll sprite sheet is an animated variant of the Drifloon pokedoll that bobs up and down like a balloon would (I named it "Drifbaloon" in my game). To get it to animate properly, when placing the event in the map with the bases events, add a custom move route to it like this:
                              Spoiler:



                              I'll also include my modified script files, and the edited "[BS]ITEMS" map file so that you guys don't have to write all of the new item code yourselves:

                              https://pastebin.com/ERs8ntiv

                              Note that this script also includes my edits to differentiate the PC's gender when choosing a Secret Base selector arrow sprite, so you're gonna want to go grab the sprite assets I uploaded one post above this one if you intend to use it!

                              I also cleaned up the comments quite a bit. I don't think Klein is a native english speaker, as there were a lot of grammatical issues and use of the wrong words in sentences that made them a bit confusing to read (not trying to be mean or anything by this comment @Klein, just trying to help!).

                              Edited [BS]ITEMS Map File:

                              ----------------
                              @KleinStudio:

                              I hope I'm not stepping on your toes or anything by posting this - I am just trying to contribute to this amazing resource. If you request that I remove these links for any reason, I will comply instantly and without question! ;3
                              __________________

                              [PokéMounts] [Warp Tile Animation Tutorial] [Fall Down Hole Animation Tutorial] [PokéCenter Monitor Icons] [Dependent Events Use Running Sprites]
                              Reply With Quote
                                #15    
                              Old November 8th, 2017 (11:37 AM).
                              SolarLegacy SolarLegacy is offline
                                 
                                Join Date: Sep 2015
                                Gender: Male
                                Posts: 9
                                So I have an issue with the script in the v16 versions of essentials.
                                When ever I leave a base and try and reenter I am prompted with the create a new secret base message. Also when I place items in the base and exit and enter the items disappear but still claim to be placed.
                                Im not sure why this does this, but if someone could help me out Id appreciate it.
                                Reply With Quote
                                  #16    
                                Old November 16th, 2017 (3:34 PM).
                                tutoriando's Avatar
                                tutoriando tutoriando is offline
                                Manoel Afonso
                                   
                                  Join Date: Aug 2017
                                  Location: Porto Alegre, Brasil
                                  Gender: Male
                                  Nature: Docile
                                  Posts: 16
                                  It's works in 15 version?
                                  __________________
                                  My game fanpage: http://fb.com/PKMDimensions

                                  Pokémon Dimensions is a fan game that proposes to bring several different dimensions in a single game. Explore Pokémon World, win the challenges of Digimon World, discover a wonderful story with Monster Rancher, and many other universes!
                                  Reply With Quote
                                    #17    
                                  Old 4 Weeks Ago (12:26 PM).
                                  Steevie88's Avatar
                                  Steevie88 Steevie88 is offline
                                     
                                    Join Date: May 2008
                                    Location: Germany
                                    Age: 30
                                    Gender: Male
                                    Posts: 26
                                    I always get this Error when i try to place Decoration:

                                    Code:
                                    ---------------------------
                                    Pokémon
                                    ---------------------------
                                    Exception: RuntimeError
                                    
                                    Message: Script error within event 1, map 317 (Geheimbasis):
                                    
                                    Exception: NoMethodError
                                    
                                    Message: Section158:1180:in `getSecretArrow'undefined method `metaID' for #<PokeBattle_Trainer:0xb18b6f8>
                                    
                                    ***Full script:
                                    
                                    pbSecretBasePC
                                    
                                    
                                    Interpreter:243:in `pbExecuteScript'
                                    
                                    Secret Bases:1699:in `pbCreatePlaceItem'
                                    
                                    Secret Bases:2077:in `startDecoration'
                                    
                                    Secret Bases:2068:in `itemList'
                                    
                                    Secret Bases:2001:in `initialize'
                                    
                                    Secret Bases:2225:in `new'
                                    
                                    Secret Bases:2225:in `access'
                                    
                                    Secret Bases:2213:in `loop'
                                    
                                    Secret Bases:2236:in `access'
                                    
                                    Secret Bases:2286:in `pbSecretBasePC'
                                    
                                    
                                    
                                    Interpreter:276:in `pbExecuteScript'
                                    
                                    Interpreter:1600:in `command_355'
                                    
                                    Interpreter:494:in `execute_command'
                                    
                                    Interpreter:193:in `update'
                                    
                                    Interpreter:106:in `loop'
                                    
                                    Interpreter:198:in `update'
                                    
                                    Scene_Map:103:in `update'
                                    
                                    Scene_Map:101:in `loop'
                                    
                                    Scene_Map:114:in `update'
                                    
                                    Scene_Map:68:in `main'
                                    Reply With Quote
                                    Reply

                                    Quick Reply

                                    Join the conversation!

                                    Create an account to post a reply in this thread, participate in other discussions, and more!

                                    Create a PokéCommunity Account
                                    Thread Tools

                                    Posting Rules
                                    You may not post new threads
                                    You may not post replies
                                    You may not post attachments
                                    You may not edit your posts

                                    BB code is On
                                    Smilies are On
                                    [IMG] code is On
                                    HTML code is Off

                                    Forum Jump


                                    All times are GMT -8. The time now is 9:40 PM.