Seven Towers: UCC Reference

USECODE INTRINSICS

int UI_count_objects(object obj, int shape, int qual, int frame)
int obj->count_objects(int shape, int qual, int frame)

Counts all objects matching a given search criteria that are contained in the supplied object.

Parameters

objThe object whose contents are to be searched. Can be a container, an NPC or PARTY = -357 to search the whole party.
shapeThe shape we are looking for. Can be SHAPE_ANY = -359 to match any shape.
qualThe quality that is being sought. Can be QUALITY_ANY = -359 to match any quality.
frameWhat frame is desired. Can be FRAME_ANY = -359 to match any frame.

Return

The number of objects that match the given criteria.

Related intrinsics

See also