ItemType

The type of an item object.

You can find all the item types in a list located in './Postal III/p3/scripts/ai_matrix.txt'

Syntax

ItemType:[item type] -- Returns the item type specified

Here's the list of all ItemTypes:


item_types
{
    1 TestItem
    2 itmXXX
    3 itmFood
    4 itmToy
    5 itmTrash
    6 itmDrink
    7 itmItem
    8 itmShit
    9 itmCatnip
    10 itmWeapon
    11 itmNasty
    12 Flame
    13 itmSeed
    14 fxTaserBeam
    15 Catnip
    16 Acid
    90 Anchor
}

Example


st_start
{
    group Neutral
    patterns 
    {
        pt_default
        {
            actions
            {
                // If we got a visible entity in our memory slot and it's manner is of ItemType itmShit...
                // Our stupid monkey brain is interested in it, and we want to throw it!
                IfAttr "slot#S_VISIBLE_ENTITY.ea_Manner == ItemType:itmShit SetAttr want_throw_shit 1"
            }
        }
    }
}