Author Topic: Backpack Item  (Read 893 times)

for a friend's RPG, i was wondering if someone could make a backpack item

basically it adds 4 slots to your inventory when you equip it.
this must be done without changing datablocks, so an idea we came up with is
have the bottom 4 slots being unusable and then when you equip it you can use them, but when you remove it, it makes you drop those items and you can't use it anymore.


What about taking it a step further.  Three backpacks.  The first has room for three slots, the second has five slots, and the third has six or seven slots.  Coupled with a one or two slot playertype, it could be good.

The new idea of adding on slots to the current inventory is what is good about your idea.

Requires a datablock change if I'm correct, if you don't mind that.

Requires a datablock change if I'm correct, if you don't mind that.

Please read..

meh, you could have 32 different datablocks, one for each player
When the player equips the backpack, thisplayersdatablock.maxTools = thisplayersdatablock.maxTools + 4;

stupid idea though...
Also, the player wouldn't receive the updated datablock until they rejoined...

Please read..
Oh whoops!! Sorry about that, kind of skipped that...  :panda:

You could have it work that like Brian Smith said, with the eight slots, if the player has more than four items it will delete the items you pickup.

Sounds fairly simple, then when you have a backpack it'd ignore the whole concept of deleting items.

This was posted in another backpack thread.



This is probally not what you wanted, but still, it would look something like this.

This was posted in another backpack thread.

-snip-

This is probally not what you wanted, but still, it would look something like this.

Yeah, something like that.

Well since datablocks with extra slots need certain code to display the slots
You could make the playertype have 8 slots, but can't use or see the 3 more, when the backpack is equiped you could see the 3 other slots.

Possible I guess