[quote:2q55lmdp]May I ask, what does it mean to 'pass the item number to the function'? How would I do it?
I thought you knew this.
You can pass data to functions as parameters, for example:
Call function without any parameters:
Function call "AddToInvertory" ()
Call function with one parameter:
Function call "AddToInvertory" (itemNumber)
Call function with three parameters:
Function call "AddToInvertory" (itemNumber, inventoryType, quantity)
Inside the function you can access these parameters using Function.Param(0), Function.Param(1) etc.
By the way, functions can also return data. So you can have something like this:
itemQuantity = Function.Call("GetNumberOfItemsInInventory", itemName)
You pass itemName to the function, and the function returns quantity of this item in the inventory.
[quote:2q55lmdp]Grab the note and select it from the inventory without going near Jim, and you can read it!
I'm irrationally proud of myself right now.
Yeah, I see it now. Pretty good!
As for the inventory system, I can't tell you which one I prefer, because I don't have any RPG games with inventory
If I ever need one, I'll probably create it from scratch. It may take more time, but at least it will be tailored to my needs and I'll have full understanding how it works.