Author Topic: Item Dropping/Count  (Read 576 times)

So I am working on an RPG and I am currently using VCE to check if the player inventory is full by simply adding a player variable named "Items" every time the player purchases an item. The flaw to this is that the player can simply press ctrl+w to drop the item and the player variable stays, thus even when the player inventory really isn't full, it still says it is.

My question: Is there a player type that disables item dropping, or is there a VCE value to check if the player inventory is actually full?
Any help is greatly appreciated. Thanks :)


EDIT: Ok so I found a VCE IfValue "Item" so I will test and see if it works

Ok yeah that didn't work. I can't figure out a way to test if the player's inventory is full or not. ANY HELP?

http://forum.returntoblockland.com/dlm/getFile.php?id=1232

No item dropping toggle server mod.

It came from here: http://forum.blockland.us/index.php?topic=158688.105

Just wondering, why are you checking to see if they have all inventory slots full?


Just wondering, why are you checking to see if they have all inventory slots full?

Thanks, that mod should work.

Also I am doing it so that the player cannot spend money buying items at the shop if their inventory is full. Instead, they must sell their items.

I really wish there was an ifValue that could check the number of items in the player inventory, this way the player could drop items and still be able to buy more without having to sell them.

Thanks, that mod should work.

Also I am doing it so that the player cannot spend money buying items at the shop if their inventory is full. Instead, they must sell their items.

I really wish there was an ifValue that could check the number of items in the player inventory, this way the player could drop items they no longer need/use and still be able to buy more without going through the trouble of selling em'. It would also save me time with events

Ok that was forgeted up? Why did it quote myself? Ah screw it. Anyways, thanks.

Thanks, that mod should work.

Also I am doing it so that the player cannot spend money buying items at the shop if their inventory is full. Instead, they must sell their items.

I really wish there was an ifValue that could check the number of items in the player inventory, this way the player could drop items and still be able to buy more without having to sell them.

Easily done.  The ifiteminhand event should suffice: http://forum.blockland.us/index.php?topic=49410.30


Except that it can't be downloaded.

Well, then he has to do it the long way and check each individual slot with <var:cl:item1> or <var:cl:slot1>, I forget which, I haven't worked on that kind of stuff in a while.

I just took that RTB link that Gen. gave me, edited the script so that you can't just throw the item away in a mini game and BAM my problemo is solved. Thanks guys :D