Changing stack size

so I have a quest where the character must collect some bottles of liquor. they receive 200 gp for each bottle.
my problem is that the bottles stack and the bartender just gives 200 for the stack instead of 200 each.
I tried changing the item properties to stackable=false. the max stack size says 1, but they still stack.

is it the base item that determines the stack size? now it is set to miscellaneous small object

Instead of changing the base item type, change the script for rewarding the PC with gold. What script are you using at the moment?

//ga_item_reward

void main(string sItemTag, int iGold)
{
	int iCount = 0;
	object oItem;
	object oPC = GetPCSpeaker();

	object oFM = GetFirstFactionMember(oPC, FALSE);
	while (GetIsObjectValid(oFM))
	{
		oItem = GetFirstItemInInventory(oFM);
		while (GetIsObjectValid(oItem))
		{
			if (GetTag(oItem) == sItemTag)
			{
				iCount += GetItemStackSize(oItem);
				DestroyObject(oItem, 0.1f);
			}
			oItem = GetNextItemInInventory(oFM);
		}
		oFM = GetNextFactionMember(oPC, FALSE);
	}

	GiveGoldToCreature(oPC, iGold * iCount);
}

Compile this script and use it in your conversation.
sItemTag should be the tag of a bottle of liquor in this case, iGold is 200.

1 Like

awesome, thanks!