Author Topic: [XP] Item Storage  (Read 42268 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
[XP] Item Storage
« on: May 02, 2009, 02:50:28 AM »
Item Storage
Authors: game_guy
Version: 1.42
Type: Item Storage
Key Term: Misc System

Introduction

If you've ever played any of the Elder Scrolls series or Fallout series than of
course then you would have noticed the awesome item storage. This script does that

Features

  • Store and Take Items Out of Chests, Closets, ect
  • Have Seperate Chests, Closets, ect
  • Easy to use
  • Stores Chests into Game System Instead of Variables
  • Have Max Amount of Items In Chest
  • Set Default Items in Chest
  • Add/Remove items to chests In Game!
  • Empty inventory into chests
  • Take all items from a chest
  • Mark items as "Key Items" to prevent removal from inventory. (e.g. "Quest Items")

Screenshots

(click to show/hide)

Demo

(Outdated!)
MediaFire

Script

(click to show/hide)
Note:
If you use RMX-OS, include the script above but also place this script below RMX-OS for it to save properly.
Code: [Select]
module RMXOS
  module Options
    SAVE_DATA[Game_System].push('@chests')
    SAVE_DATA[Game_Chest] = ['@max', '@weapons', '@armors', '@items']
    CREATION_DATA[Game_Chest] = GameGuy::ChestMaxItems.to_s
  end
end

Instructions

New and improved instructions in the script.

Compatibility

Not tested with SDK.
Compatible with RMX-OS (Must use small plugin)

Credits and Thanks

  • game_guy ~ making the system
  • MightyLink ~ requesting the system

Author's Notes

Enjoy and give credits!ll have to do this
# through a script call.
# -Take All
#
« Last Edit: July 18, 2012, 04:00:21 AM by game_guy »

Offline Starrodkirby86

  • Kirby de Varita Estelar
  • Guardian of Chaos
  • ********
  • Posts: 3281
  • LV: 194
  • Gender: Male
  • ~!
    • View Profile
    • The Archive of Starrodkirby86
Re: [XP] Item Storage
« Reply #1 on: May 02, 2009, 03:30:22 AM »
I have a request on this sort of script, if you can achieve this.

There was an Indie game I played a long time ago known as the Exile series (Now remade into Avernum), and they had a similar item system to this. However, their item system has its few differences.

For one:
  • You can drop an item anywhere you want. The item dropped will be its respective icon.
  • Monsters drop items when they die, etc. Or there are items on the ground (Like rocks, twigs, gems, etc.)

I think of your screenshot as another mechanism of "Item Pick-up" within this system.

With the case of those item drops and whatever, it can be a serious way of abuse, huh? The developers of Exile moderated it through this way...Even though you can drop items anywhere you want, when leaving the town for a while, the items dropped will be gone. The only exception is at certain special areas, such as the Storage Room or the House on the Hill (In one game).

Can you perhaps make something like this? Of course, I'm not forcing you.

Great script though.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).



Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #2 on: May 02, 2009, 03:34:33 AM »
I'll try I guess.
The items you pickup are easily evented. Have a player touch event, through is checked, respective graphic, add item, eh you get the point.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Item Storage
« Reply #3 on: May 02, 2009, 03:39:35 AM »
Star meant that the items that are picked up can be the ones you dropped.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #4 on: May 02, 2009, 03:41:51 AM »
One of my favorite scripts, great job on this one :)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #5 on: May 02, 2009, 03:43:50 AM »
Star meant that the items that are picked up can be the ones you dropped.

Either way it'll still require quite of bit of scripting I will see and try to see what I can do but no promises.

Offline Reno-s--Joker

  • Astral Trancist
  • *****
  • Posts: 674
  • LV: 34
  • Gender: Female
  • Zombie account.
    • View Profile
    • My DeviantART
Re: [XP] Item Storage
« Reply #6 on: May 02, 2009, 11:15:53 AM »
Wow, this is reeeaalllly neat. *instant power up for G_G* Great idea Mightylink too. :)

... Is it kinda like Fat Chocobo?
Wait, I'll DL the demo actually. Might use this in my game.

Offline cstb

  • Transcended Spirit
  • ***
  • Posts: 137
  • LV: 0
  • Gender: Male
  • I'm back... With lost data and a crashed computer.
    • View Profile
Re: [XP] Item Storage
« Reply #7 on: May 07, 2009, 03:17:57 PM »
I may use this too IF he adds the ability to have items already in a chest.
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Offline legacyblade

  • Pretzel Man
  • Moderator
  • Chaos User
  • ***
  • Posts: 1838
  • LV: 84
  • Gender: Male
  • There is a fate worse than hell
    • View Profile
    • SpencerConrad.com
Re: [XP] Item Storage
« Reply #8 on: May 07, 2009, 09:11:12 PM »
I'm pretty sure he's adding that ability.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #9 on: May 08, 2009, 06:27:32 AM »
Isnt it already added?

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #10 on: May 08, 2009, 06:31:24 AM »
sorta but the way I showed you has to be used before any chest is opened. I'm trying to do what legacy said but I'm still trying to get it.

Offline legacyblade

  • Pretzel Man
  • Moderator
  • Chaos User
  • ***
  • Posts: 1838
  • LV: 84
  • Gender: Male
  • There is a fate worse than hell
    • View Profile
    • SpencerConrad.com
Re: [XP] Item Storage
« Reply #11 on: May 08, 2009, 03:53:03 PM »
If you are having trouble, PM me what you're having trouble with, and I'll help you. I always love to help people when I can.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #12 on: May 08, 2009, 03:57:30 PM »
I think its perfect already :P You just need to have a one time condition before opening the chest.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #13 on: May 09, 2009, 02:37:03 AM »
Thnx mighty, lb I think I almost got it, oh and Link I did update my achievements script in case you never noticed. It needs to be below this scrip thtough.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #14 on: May 09, 2009, 02:58:05 AM »
Yes I got it, for those wondering about chests with items already in it, this is the event code to use, at least for now till gi gi updates the script:



All you need to do is pick an unused switch and have your give items run once with that condition, that way the items dont come back when you loot the chest again.

I actually like it this way, you can do all sorts of neat stuff like have respawning chests, chest that add items when certain events happen, or you can even make the same herb chest from oblivion, put an item in and get 10 of that item a week later, its all possible through this event.
« Last Edit: May 09, 2009, 04:18:49 AM by Mightylink »

Skillzalot

  • Guest
Re: [XP] Item Storage
« Reply #15 on: May 12, 2009, 05:24:50 PM »
Can you please add to it so you can limit how many items you can store in each bag

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #16 on: May 12, 2009, 06:14:25 PM »
Youngster Gi Gi, I dont know why but im getting new problems, it started happening after I updated all of blizzards scripts but I dont know how it could be related.

When I put items in chests (with player) they no longer stay in the chest and I lose those items, errrr i dont know what happend, I never changed anything it was working so perfectly till now.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #17 on: May 12, 2009, 11:24:14 PM »
Maybe try placing this below all of blizz's scripts and see if it works.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Item Storage
« Reply #18 on: May 13, 2009, 08:51:22 AM »
place what :P

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Item Storage
« Reply #19 on: May 13, 2009, 11:16:28 PM »
Place my achievements script and the item storage script below blizz's scripts.