SetChestValue

SetChestValue
void SetChestValue ( int TID, str Type, int Index, int Amount )

code contained in Inventory/script/INV_Funcs.dh

Properties:
example: int Chest38ItemDurability = GetChestValue( ActivatorTID, "ItemDurability", 38 );
 * TID - Thing ID of stash actor
 * Type - String of the value type ( "ItemIndex", "ItemDurability", "ItemModifier", "ItemAmount" )
 * Index - Index number 0-99 for the value type
 * Amount - value to set of this value type at this index

Description:
Sets the value of Type at Index from the actor with TID. Combines the Type and Index with StrParam to provide the inventory actor name for setting.

Sister function to GetChestValue