Page 1 of 1
Item::InventoryRemove()
Posted: Tue Jan 28, 2014 9:33 pm
by KaL
Ok I get Item::InventoryRemove('itemx',1) but what if I want to removed all the quantity for that "item x" How would I write this?
Re: Item::InventoryRemove()
Posted: Tue Jan 28, 2014 9:43 pm
by a_bertrand
I let you dig a bit...
Re: Item::InventoryRemove()
Posted: Wed Jan 29, 2014 12:51 am
by KyleMassacre
KaL wrote:Ok I get Item::InventoryRemove('itemx',1) but what if I want to removed all the quantity for that "item x" How would I write this?
Maybe a little something like:
Code: Select all
Item::InventoryRemove('itemx',Item::OwnedNumber('itemx'));
That could do the trick
Re: Item::InventoryRemove()
Posted: Wed Jan 29, 2014 1:13 am
by KaL
Thanks Kyle! I did give it a tried,Alain. I tried $quantity, 'quantity', {$obj->quantity} but I think I'll probably figure it out after a 3 weeks. Hahaha!

Re: Item::InventoryRemove()
Posted: Wed Jan 29, 2014 5:16 am
by a_bertrand
Still, it would have forced you to READ what the code do, and actually learn. We can't code the game for you, you must invest the time and efforts to solve your first issues, and you will see that over the time things will be easier, otherwise you will not learn.
Re: Item::InventoryRemove()
Posted: Wed Jan 29, 2014 2:53 pm
by KaL
Yes, that is true! When i first came to NWE. I have no knowledge of how the backbone of the GUI works. After a few talks with Kyle, I've kinda get the concept of how the engine. The vision is clear now but it will take a little bit more time to figure out how each command works. I truly believe that i can't not be a programmer but more of a modifier. Well, atleast my game is moving forward, thanks to you guys.
