%itemInitType()

Aliases%itemInitType( )
Parametersobject @entity, string @type

    Attempts to initialize the given object @type for the object @entity. Once
this is done the associated fields for that object type can be
manipulated. Following are the possible values for the @type parameter:

affect key scroll
armor light staff
armour missile tome
artifact money trap
boat note trash
container other treasure
corpse pen wand
drink potion weapon
food resource worn
gold rod

Example:
--------------------------------------------------------------------------

%itemInitType( @obj, food )
@obj->food->portionSize = 10