Call Inventory
Zephirius
Member Posts: 419
Could someone point me in the right direction here?
I'm just trying to check to see if xItem is in the PC's inventory, and if it is "blank" happens...
More to the point, exactly when the PC puts the "leaf" in his inventory.
Grabbed this from the Lexicon but am uncertain.
if (GetItemPossessor(GetObjectByTag("SENDING_LEAF")) != OBJECT_SELF)
Sometimes I have trouble - literally speaking this language and therefore have trouble stringing logical statements together. Slowly learning. Yep... that's me... slowly learning.
I'm just trying to check to see if xItem is in the PC's inventory, and if it is "blank" happens...
More to the point, exactly when the PC puts the "leaf" in his inventory.
Grabbed this from the Lexicon but am uncertain.
if (GetItemPossessor(GetObjectByTag("SENDING_LEAF")) != OBJECT_SELF)
Sometimes I have trouble - literally speaking this language and therefore have trouble stringing logical statements together. Slowly learning. Yep... that's me... slowly learning.
0
Comments
set "ration" to the object you are looking for, the line setlocalint is where "blank" happens
If you have Tag Based scripting turned on in the module then you will want to give the "leaf" item a specific tag and make a script with the same name as that tag. When the player acquires the leaf the script will fire:
If you don't have tag based scripting turned on then you would put a snippet of code in your modules OnAcquireItem event: