I hope someone can help me. Basicly I need help with a stacksize decrease script.
Its supposed to decrease the stack by one every time upon use of the item. But right now it does not do anything.
Here is the script.
object oItemToTake;
oItemToTake = GetItemPossessedBy(oTarget, "lamp_oil");
if(GetIsObjectValid(oItemToTake)) { if (GetItemStackSize(oItemToTake)==1) { DestroyObject(oItemToTake);
SetItemStackSize(oItemToTake, GetItemStackSize(oItemToTake)-1);