Code:
mob
var
itemID // item id
itemAmt // item amount
proc
checkItems(itemID, itemAmt)
/*
itemID = whatever item thing is.
itemAmt = whatever item amount is.
*/
// Example in an NPC
NPC/Kirone
verb/Talk()
set src in oview(1)
usr<<"Hello, [usr]. Do you have the items I want?"
if(usr.checkItems(1,10)) // if itemID is 1, and itemAmt is 10, could this work?
usr<<"Yes you do!"
else
usr<<"No you don't..."
item
Juice
itemID = 1
verb/PickUp()
// How do I make the item amount for THIS item (itemID = 1) go up one?
Problem description:
Kso. I have this little diddy right here. How can I set an itemAmt IN itemID? Read the comments to know what I mean.
Something like this: