Author Topic: Inventory Slot Count Support - Modify/Create players with more slots.  (Read 14814 times)

Notice to modders with item modifying codes. Rather than just saying 5 for your loops, you should adjust it to use the datablock's maxTools variable.
(Which you should've been using anyways...)


Inventory Slot Count Support
Allows you to create/modify datablocks to have more or less slots.

Description
This mod is completely server sided. No clients will need this to use extra slots.

To use this:
When making a datablock:
maxTools = ##;
(Note: Make sure to adjust maxWeapons, if maxWeapons is lower than maxtools, you will not be able to have a full inventory of weapons. To use:
maxWeapons = ##; )

Modifying a datablock:
datablockname.maxTools = ##;
(And for weapons:
datablockname.maxWeapons = ##; )

Example of a no-jet 10 slot player:
datablock PlayerData(PlayerNoJetTenSlots : PlayerStandardArmor)
{
   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;

   uiName = "No-Jet 10 Slots";
   showEnergyBar = false;
   maxTools = 10;
   maxWeapons = 10;
};

Example of modifying no-Jet player to have 10 slots:

PlayerNoJet.maxTools = 10;
PlayerNoJet.maxWeapons = 10;

Download
Support_InventorySlots.zip (Last Updated: Thu Dec 04, 2008 7:32 pm)

Installation
Put Support_InventorySlots.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager
« Last Edit: December 04, 2008, 07:59:19 PM by Chrono »


these pwn!thanks for these  :cookie:  :cookie: now to have 10 slots of grenades.>:D

these pwn!thanks for these  :cookie:  :cookie:
Question, do you know what this does?

lol saw this on suggestions 10 minutes ago, that was fast.

lol saw this on suggestions 10 minutes ago, that was fast.
16 lines of code is indeed fast.



useful, i was looking in the thread requesting this

Ok, you can't set items for minigames in the extra slots, that doesn't surprise me.


Mainly, the CheckInventory events don't work with bottom 5.

Question, do you know what this does?
I was guessing the make more slots for you.otherwise i was wrong.
Warning-while you were typing a new post has ben posted.You maw wish to review your post.
DANG YOU!
« Last Edit: December 04, 2008, 09:51:30 PM by Agent 1 »

Ok, you can't set items for minigames in the extra slots, that doesn't surprise me.


Mainly, the CheckInventory events don't work with bottom 5.
Check events aren't my problem, but I'll look into the minigame stuff later.

I was guessing the make more slots for you.otherwise i was wrong.
You still have to know how to utilize datablocks. This is a support for modifying datablocks usefully, not something that gives everyone more slots by default.

any possibility of making maxweapons and maxtools be modified with a simple, unified, maxinvatory?

any possibility of making maxweapons and maxtools be modified with a simple, unified, maxinvatory?
No, maxTools and maxWeapons are built into the default Blockland code.

I've always wanted to do something like this, but alas, I cannot script.