Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Sub]Item Storage/Backpack Event, store items with events only finally :D
lilcooldude69
post Oct 8 2010, 04:01 AM
Post #1


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




Item Storage/Backpack Event


Author lilcooldude69
Release Date 10/8/10
Engine Used RPGmaker VX
Version 1.0
Difficulty Normal
Switches 0
Variables 20, 1 for input value, 1 for withdraw value, 2 for each item and item storage all the way up to life up item on a new project
Common Events 1, for the backpack
Video Click Here
-------------------
Information
Creates an npc that lets you store certain items and withdraw certain items also has the feature of store all and withdraw all, when you use this you can only use the backpack or the npc not both or you will have both your backpack and your item storage collaborating items e.x. you store an item in your backpack, you go check the item storage npc and you have that item inside your item storage as well, i didnt feel like making 40 variables because that would take forever however.....if you guys truly want me to make it with 40 variables so your npc and backpack arent collaborating suggest me to do so otherwise im not doing it...
-------------------
Steps
The long Event U will have trouble following
Step 1:
Create 4 types of variables, 1 for the store value, 1 for the withdraw value, 1 for the number of items in your inventory and 1 for the amount of items already stored.

Step 2:
Set all of the "items in inventory" variable to there respectable variables as seen here, also add a label so when somthing is done the npc will jump back to the beggining of the event for more options

Step 3:Make your npc say whatever then add some choices like I have shown and set the When cancel to Branch like shown, (dont worry about the more option i'll get to that)

Step 4:
Under the Storage option Put some more text for ur npc referring to the option,Then insert a Show choices command, depending on the amount of items your going to use make edits according to the command (if you do use moer than 3 items witch you probably will make the last option a more option and make the When Cancel set to branch, In the storage options
you must Make and option for each separate item as shown, (i have added alot of items for use in the demo but im not going to display
them all in this tut on how to use this if you wanna see all of the items in play watch the video or download the latest demo posted)

Step 5:
Under the first item option Make the Npc ask how much you would like to store then, insert an input command like so and Set it to the Store Value Variable like shown and make sure its only 2 digits long as that being the max amount of items a game can hold if yours hold more make edits accordingly

then make a conditional branch

make the condition this.

if the condition is not met make the npc say somthing reguarding why its not met, if the condition is met, under the Else part of the condition
the first command u will be putting in the else part of the condition is a change items command like shown.

then a control variable command like shown.

then add a jump to label option and make it jump to the label u made in the beggining of this tutorial. phew...that was long and that was only the beggining also note that ive only done this for 1 item depending on how many items you use you will need to make an option for that item and do this step for each item (making the conditional,if its false he will say why, if its true u will do all of this for that item,so lets recap this is what we have soo far...

Step 6:
we just did the store option now its time for the Withdraw option soo scroll your way down to the withdraw part of the event

Add some Choices same as the storage each item needs it own withdraw choice

Step 7:
Have the npc Ask how much they would like to withdraw maybe say how much they have left to add a nice touch. insert an input number command like shown. same as before 2 digits unless ur game holds more items than the default (note: your only able to store the maximum amount in your storage as well, then again i havnt tested it so if you wanna save me the time of re uploading another revision then by all means test it and let me know if it works if it does maybe i'll add a new revision but the withdraw all option that i show you later wont work or at least it wont do its job it will probably be switched to Withdraw Max amount.)

Step 8:
make another conditional branch only like this this time.

under the condition if its true make the npc say somthing referring why its true, then under the else part of the condition insert a change items command like so.

after that put a control variable command like so make sure its subtract not add.

after that end the else part with jumping back to label 1......phew once again was pretty long your hanging in there another recap

Step 9:
now comes the fun part(its not that hard i dont think...) The store all and Withdraw all commands which was the more option that i said i was going to get back to you on well ne ways....under the more option of ur showchoices we made at the beggining of the event insert another show choices command and this time name them Store all and Withdraw all like shown. make sure the 3rd choice is the when cancel.

under the store all option of the choices make a conditional like shown.

if its true say why, if its false put this

do not worry im going to get into the variables, for each and every item you must set a variable and add it to the number of pots stored. like shown.
and after u do the variables u gotta do it to ur inventory as well or we have what u call an item duplicated exploit ohmy.gif.insert a change items command likke shown

okayyyyyyy were almost there one more command left and were done with the npc version, recap~

Step 10:
okay now were moving on to the withdraw all command biggrin.gif.

Make a conditional once more like shown.

Step 11:
pay close attention to those variables they need to be exact i suggest running through all ur event and make sure each variable is exactly correct with the correct options with the correct order. do the same as before if its true say why if its not do this.

now in this choice ur doing it completely opposite as the last, in the last choice the variables came first but in this one the change items command comes first like shown.

and of course our variables.your doing somthing different to the variables this time your setting them to 0 because once u withdraw all ur items the storage needs to be set to 0 tongue.gif otherwise it bugs idk why it does that it just does if u dont like it, well enjoy ur bugged withdraw all option then >:[

but wait thers more cant forget the backpack if you wanna do that instead the back pack is actually quite simple once uve done this, just copy and paste this entire event into ur common events name it back pack and then make an item call it backpack, leave all the elements/status changes empty, set the scope to none, occasion: only from menu, consume: no, Speed: 0, animation: (if you want one when u use it tongue.gif), common event: Backpack, Rest of the options under this leave at default.
If you wanna see this event in action the video link is near the top of this thread or if u dont like my video try it out for urself the download is right below 1.1 is the latest (obviously >_>)

another note i put alot of work into this tutorial so please have some common curtesy and dont flame this submission even if it is useless to you, it may be useless to somone else making a game, if people start to flame this post i will remove it no questions asked.

------------------
Download Demo
Version 1.0
Version 1.1

Change Log
Version 1.1 - Fixed the item duplication bug when you withdraw all and store all

-------------------
Conclusion
post here if you have any bugs, if you use my event plz credit me name is on the side obviously, have any suggestions post those here as well, leave feed back

Coming soon
nothing at the moment....start suggesting smile.gif

This post has been edited by lilcooldude69: Apr 20 2011, 02:10 AM


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   
Masterly and Suc...
post Oct 11 2010, 09:32 AM
Post #2


Level 1
Group Icon

Group: Member
Posts: 10
Type: Event Designer
RM Skill: Masterful




Hey, nice event. One thing I could suggest is adding a limit to how much stuff you can carry, and add upgrades/bigger backpacks with bigger amounts of items they can carry, because a real backpack doesn't hold everything. I'm pretty sure you know how to do this.
Other than that I love the event!


__________________________
Go to the top of the page
 
+Quote Post
   
lilcooldude69
post Oct 12 2010, 01:27 AM
Post #3


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




lol still trying to work out the store all and withdraw all thats why its set that if you have any items in your back pack and u wanna do a store all it wont let you because if you do it will erase what u withdraw when u use the withdraw all selection so lets say you have 25 of one item in your inventory but u do a withdraw all and you have 99 of that item in your storage if you withdraw all 25 of that item will disappear and basically be replaced by what u withdrew which is bad but in the mean time i will add upgraded back packs but the store all and withdraw all still stands :3


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   
Masterly and Suc...
post Oct 12 2010, 04:08 PM
Post #4


Level 1
Group Icon

Group: Member
Posts: 10
Type: Event Designer
RM Skill: Masterful




QUOTE (lilcooldude69 @ Oct 12 2010, 02:27 AM) *
lol still trying to work out the store all and withdraw all thats why its set that if you have any items in your back pack and u wanna do a store all it wont let you because if you do it will erase what u withdraw when u use the withdraw all selection so lets say you have 25 of one item in your inventory but u do a withdraw all and you have 99 of that item in your storage if you withdraw all 25 of that item will disappear and basically be replaced by what u withdrew which is bad but in the mean time i will add upgraded back packs but the store all and withdraw all still stands :3

Wait what? I don't understand what you're saying... But if you need help and can learn proper grammar I'm ready and willing! wink.gif


__________________________
Go to the top of the page
 
+Quote Post
   
lilcooldude69
post Oct 12 2010, 07:48 PM
Post #5


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




yeh if you read my profile i think it says right on it i dont care to correct my errors in typing/care for propper grammer here i'll put it in my personal statement for you lol so you know and i said it duplicates items if you use the store all and withdraw all option on the demo im trying to fix it but i will take your suggestion into consideration on the next update smile.gif


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   
Masterly and Suc...
post Oct 13 2010, 09:17 PM
Post #6


Level 1
Group Icon

Group: Member
Posts: 10
Type: Event Designer
RM Skill: Masterful




So you don't need help? Alright then tongue.gif


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 10:42 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker