Item Object Functions

From Danmakufu Wiki
Jump to: navigation, search

ObjItem_SetItemID

Parameters:
 1) object ID (real)
 2) item ID (real)

Sets the ID of the item object, as defined in the item definition script.

ObjItem_SetRenderScoreEnable

Parameters:
 1) object ID (real)
 2) enable score display (bool)

Sets whether a score indicator will be displayed when the item object is collected. This is the score given as argument to the CreateItem() functions.

ObjItem_SetAutoCollectEnable

Parameters:
 1) object ID (real)
 2) enable auto-collect (bool)

Sets whether the item will be pulled towards the player when the player moves past the point of auto-collection.

ObjItem_SetDefinedMovePatternA1

Parameters:
 1) object ID (real)
 2) movement type (real)

Sets the movement type of the item object. Movement types are:

  • ITEM_MOVE_DOWN: immediately drops down
  • ITEM_MOVE_TOPLAYER: automatically flies towards the player

Defaults to flying upwards and then coming down.

ObjItem_GetInfo

Parameters:
 1) object ID (real)
 2) info type (constant)
  • INFO_ITEM_SCORE: Returns the score value of the item object (real).