Cog Files


Inventory Reference


Inventory code verb reference.

ActivateBin
ChangeInv
DeactivateBin
GetInv
GetInvCog
GetInvMax
GetInvMin
IsInvActivated
IsInvAvailable
SetBinWait
SetInv
SetInvActivated
SetInvAvailable
SetInvFlags


ActivateBin() Control

Activates a bin BINS Ref

Use: ActivateBin(thing,flex delay,bin);


ChangeInv() Control

Changes the value of specified inventory bin. BINS Ref

Use: BinValue = ChangeInv(player, bin, flex); returns the bin flex value (won`t exceed bin min/max).Value can be positive or negative.


DeactivateBin() Control

Deactivates a bin . BINS Ref

Use: Time = DeactivateBin(thing,Bin); Returns the time bin has been activated


GetInv() Info

Retrives the value of specified inventory bin. BINS Ref

Use: BinValue = GetInv(thing,bin); Returns value of bin content.


GetInvCog() Info

Retrives the cog reference of a bin. BINS Ref

Use: Cog = GetInvCog(thing,bin); Returns the reference of the cog of the bin passed. passed.


GetInvMax() Info

Retrives the max value for specified bin. BINS Ref

Use: MaxValue = GetInvMax(thing,bin); Returns the max value of bin.


GetInvMin() Info

Retrives the min value for specified bin. BINS Ref

Use: MinValue = GetInvMin(thing,bin); Returns the min value of bin.


IsInvActivated() Info

Checks bin to see if it is activated. BINS Ref

Use: IsActive = IsInvActivated(thing,bin); returns 1 if bin active,0 if inactive.


IsInvAvailable() Info

Checks bin to see if it is available. BINS Ref

Use: IsAvailable = IsInvAvailable(thing,bin); returns 1 if bin available,0 if notavailable.


SetBinWait() Control

Sets a delay before bin can be reactivated. BINS Ref

Use: SetBinWait(player,bin,flex delay);


SetInv() Control

Sets the value of the specified inventory bin. BINS Ref

Use: SetInv(thing,bin,flex); sets bin to value.


SetInvActivated() Control

Acivates or deactivates the specified bin. It also draws the bin icon on right side of screen. BINS Ref

Use: SetInvActivated(thing,bin,int); 1=activated ,0=inactive.


SetInvAvailable() Control

Sets bin to available/unavailable. Also displays the bin icon in the inventory. BINS Ref

Use: SetInvAvailable(thing,bin,int); 1 = bin available,0 = notavailable.


SetInvFlags() Control

Sets specified bin flags

Use: SetInvFlags(player,bin,flags); Not sure of this ,not used in cog.