Announcement

Collapse
No announcement yet.

Creating a Storage Chest/Room for Items

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating a Storage Chest/Room for Items

    This is probably not necessary because you have the Bag, but I want to create a place to store items. That way you can store some of your relics or specialized items, unique weapons and armor, etc. Any tips on how this can be done?

    Edit:

    I am trying to use a customized Merchant scipt for for this, in which I create specialized "items" to place in the "Buy" list that represent each of my characters. I am trying to set it up so that when I select an item/character to "buy", it pulls up that characters inventory using the Sell script. Then I can "sell" the item to the Storage Chest/Room at a 0% sell rate. I will also have to create some sort of intentory system with variable to keep track of the stored items as well. It sounds easy enough, but I have yet to get it to work. If any one has done something like this already or has any idea how to make a storage room, I could use some help!

    Sic Parvis Magna -"Greatness from small beginnings" -Uncharted 3
    Last edited by Lonewolf; 11-11-2011, 07:04 PM. Reason: Additional input...

    #2
    Re: Creating a Storage Chest/Room for Items

    Have you tried stealing the bag script and applying it to something like a sheep?

    Then they can just store things inside the sheep and retrieve them at will, just like in the bag.

    Plus, the sheep could make rude jokes and noises when things go in and out...

    MOO!




    Comment


      #3
      Re: Creating a Storage Chest/Room for Items

      Lol that's some funny ***** Rodak! No I haven't tried that! I guess I'm Off to find me a sheep!

      Comment


        #4
        Re: Creating a Storage Chest/Room for Items

        I like the idea because you can make the sheep event "act as party member" and it will follow them around, but never go into battle (also just like the bag item). It can even be made to leave at times with all their stuff and come back later, if the story could use such a plot device.

        Glad you like the thought.

        MOO!




        Comment


          #5
          Re: Creating a Storage Chest/Room for Items

          Yeah, your idea could have many different applications, if it could work! Do you have RPG Maker 2? Is there way to set the bag to only 1 certain character/sheep like that? I have been trying to work it out, but to no avail! I don't think there is an actual Bag script, I think it's "built into" the system or something. So I don't know if what you are suggesting is possible...

          Comment


            #6
            Re: Creating a Storage Chest/Room for Items

            Yes, I have RPGM2 and it's the only one I got good with (see the VFX Editor Guide Link in my signature!) (it's old, but it has some useful stuff despite being unfinished).

            But I haven't used it for years... I honestly don't recall f the bag is a system event with scripts, or something lower lever than that which we can't access and tweak around.

            I'll try to dig it out this weekend and have a look. If not, the merchant would be your best bet. The only issue I can see is the limit on items merchants can have. That could be compensated for by using only a few items in the game, or only a few per "continent" (or play area) and having an event on each continent. Then they can travel and drop stuff at various locations.

            Not sure how to stop them selling too many items though...
            Or how best to have each merchant remember what they "bought" - the script branches would get quite numerous.

            Maybe see if they can be set to refuse to buy some items if they are not "native" to their own continent or area?

            It can be done, but depending on how much work you want to put into it - it could be more work (and more memory) than it's worth.

            MOO!




            Comment


              #7
              Re: Creating a Storage Chest/Room for Items

              yeah I've looked for it but couldn't find an actual script for the bag, I am still working on the merchant script though. they way I am trying to do it is I created 3 items called "Store Item" , "Retrieve" and "Leave" then when I "buy" one of them, say I "buy" Store Item, it will open the Sell list script and so on... no luck yet tho

              I like the idea of "continental" items, might be something to look into...

              let me know if you figure anything out with it, I'm sure there's a workaround!

              Comment


                #8
                Re: Creating a Storage Chest/Room for Items

                Originally posted by Lonewolf View Post
                yeah I've looked for it but couldn't find an actual script for the bag, I am still working on the merchant script though. they way I am trying to do it is I created 3 items called "Store Item" , "Retrieve" and "Leave" then when I "buy" one of them, say I "buy" Store Item, it will open the Sell list script and so on... no luck yet tho

                I like the idea of "continental" items, might be something to look into...

                let me know if you figure anything out with it, I'm sure there's a workaround!
                The way I would attempt this is by using one the party members as a storage character. You can turn him into a chest if you want - and give it items you want it to store using the Give Command from the basic menu options.

                That's really the only way I can think of that you could make a storage chest on this game. It would have to include the party member database.

                Comment


                  #9
                  Re: Creating a Storage Chest/Room for Items

                  I've actually thought of that Jeremy, but doing it this way limits the number of items I can store to just what that character can hold, which isn't much unfortunately. I could, however, try this concept using multiple "storage characters" and apply a sort of "page" system to the script. That might work...with each storage character representing a different page. Hmmm....I think I might try to work out a script. Thanks for the suggestion, if you think of anything else, let me know!
                  Last edited by Lonewolf; 04-08-2012, 08:19 AM.

                  Comment


                    #10
                    Re: Creating a Storage Chest/Room for Items

                    Originally posted by Lonewolf View Post
                    I've actually thought of that Jeremy, but doing it this way limits the number of items I can store to just what that character can hold, which isn't much unfortunately. I could, however, try this concept using multiple "storage characters" and apply a sort of "page" system to the script. That might work...with each storage character representing a different page. Hmmm....I think I might try to work out a script. Thanks for the suggestion, if you think of anything else, let me know!
                    Well if you are wanting to increase the amount of items you can store it may be possible just to use variables and link them to specific items then put them in your character's inventory through scripts. Varaible 134[Item Number] should help you do it. You could pretty much store all the items you wanted to using this technique - in theory. Though techncially you will just be loading saved Item Numbers into your inventory - but it might give you the desired effect.

                    For Example: And create your own Variable and called it [Stored Item1]

                    In the Adv tab of the Item editor you will see a spot you can insert a script next to the Discard Item option. This will allow you to write a specific script that interacts with the item you are choosing from your inventory. So you could write a script similiar to this:

                    Do you want to store this item?
                    Condition: Yes
                    [Stored Item1] = [Item Number]
                    Condition: No
                    End Script

                    This should save the current item to your Store Item1 variable before the item is deleted. So you should be able to recall this item when ever you want simply by accessing a script like this:

                    Would you like to remove Stored Item1?
                    Condition: Yes
                    Condition:Apply if: [Stored Item1]=1
                    Members/BasicInfo/Add Item 1

                    It would be a long script depending on how many Items are in your game because you would have to make a condition for each possibe item you stored, but it might could be refined with some work.

                    Anyways, might give you a starting place.
                    Last edited by Jeremy; 04-08-2012, 09:05 PM.

                    Comment


                      #11
                      Re: Creating a Storage Chest/Room for Items

                      THAT I hadn't thought of...and I think it could work, though I agree it would require a LONG script due to the amount of items I plan on using! Still, like you said, it's a good starting point and maybe I could find a way to compress the script somehow. I'll try to put a script together and see what happens! Thanks again and keep me posted if you come up with anything else!

                      Comment


                        #12
                        Re: Creating a Storage Chest/Room for Items

                        Originally posted by Lonewolf View Post
                        THAT I hadn't thought of...and I think it could work, though I agree it would require a LONG script due to the amount of items I plan on using! Still, like you said, it's a good starting point and maybe I could find a way to compress the script somehow. I'll try to put a script together and see what happens! Thanks again and keep me posted if you come up with anything else!

                        There are a lot of ways you could possibly compress it. One is by simply using script calls - that way you woudn't have to rewrite what is basically the same script for each Item Stored.

                        For example, make a script like this:

                        Apply if [Temp Variable1] =
                        if 1:
                        Add Item1 to inventory
                        if 2:
                        Add Item2 to inventory
                        if 3:
                        Add Item3 to inventory
                        if 4:
                        Add Item4 to inventory
                        if 5:
                        Add Item5 to inventory
                        if 6:
                        Add Item6 to iventory
                        if 7:
                        Add Item7 to inventory
                        if 8:
                        Add Item8 to inventory
                        if 9:
                        Add Item9 to inventory
                        if 10:
                        Add Item10 to iventory ect.... can do this up to w/e number you want - and since you only have to write this once it shouldnt' be that big a deal.

                        Then you make this script a script call that you can use for each stored item. For example, when you go to your storage chest script it reads like this?

                        Which Stored Item do you want to take out? (Multiple Choice)
                        1. [Stored Item1]:
                        Data: [Stored Item1] = [Temp Variable1]
                        {Script Call}
                        2. [Stored Item2]:
                        Data: [Stored item2] = [Temp Variable1]
                        {Script Call}
                        3. [Stored Item3]:
                        Data: [Stored Item3] = [Temp Variable1]
                        {Script Call}
                        4. [Stored Item4]:
                        Data: [Sotred Item4] = [Temp Variable1]
                        {Script Call}
                        5. [Stored Item5]:
                        Data: Stored Item5] = [Temp Variable1]
                        {Script Call}

                        Hopefully you get the idea now. So basically you'll only have to write the Item Retreival script once and use it over and over for each Item Number you stored to a variable.

                        Comment


                          #13
                          Re: Creating a Storage Chest/Room for Items

                          You read my mind..I was actually thinking about how to reduce the size of the script and came to the same conclusion. But I haven't had a chance to sit down and work on it. Thanks for working out a basic script though! As always, keep me posted if you come up with any other tips.

                          Comment

                          Working...
                          X