> Please clarify what exactly you want to do. Do you want to copy 3 new items or add an item with 3 properties?
>
* Item on ground has;
HpID:175
MpID:125
VitalityID:100
* - When the item goes from ground to inventory, we want the HP/MP/Vitality ID values to follow
The first thing you need to do is define how you store the HP/MP/Vitality data of the item, so from where is the data supposed to be copied. Let's assume the simplest case, that you have it as variables of an object (sprite) that represents the item. On Item pickup the object will be destroyed but only after you store the item in the inventory.
This is how it can be done (there are arguably better, but more complicated and requiring more explaining ways). For example:
When the player clicks or does some other action triggering item pickup, you call an "Item Pickup" function, and pass all the properties of the object as parameters of the function. So name, HpID etc. would all be instance variables of the item object (sprite).
So you would have a call function "item pickup" action with parameter 0 = item.name, parameter 1 = item.HpID, parameter 2 = item.MpID and parameter 3 = item.VitalityID.
Next you need to have the "item pickup" function store the data passed as parameters in the inventory array. I have no idea how many item statistics you exactly need, but you need at least 4. So your array, if it is a 2D array like in the inventory tutorial example, it needs a height of 4.
Now, the important thing you need to do, is to write down which row stores what information for an item. Let's assume for the purpose of this example the following, as it is consistent with what we used in the parameters:
y = 0 is the name of the item
y = 1 is HpID
y = 2 is MpID
y = 3 is VitalityID
Assuming you know into which element x (slot) you want to put the item into, which I shall simply call "i" (short for index) here, all you need to do is use the set array value at action as follows in the "on function "Item Pickup" event:
Set value at X=i Y=0 to function.param(0)
Set value at X=i Y=1 to function.param(1)
Set value at X=i Y=2 to function.param(2)
Set value at X=i Y=3 to function.param(3)
That's it, the data will be stored in the array. You just need to know at what element x to store it, pass the right values in the function and make sure the array has the correct height so that it can store y from 0 to 3.