Pikifen/Object categories/Treasure

A treasure refers to any main collectible that the Pikmin can deliver back to the ship. These are the ship parts in Pikmin, the treasures in Pikmin 2, and the fruits in Pikmin 3.

Examples of treasure types include the Main Engine, the Courage Reactor, and the Sunseed Berry.

To create a new type of treasure, please follow the creating object types tutorial.

Overview
A treasure type object simply has logic to be carried, and to give a different value of points. The only other important parts of the treasure are their radius and weight.

Treasure type objects are hardcoded in the engine to sit there, be carried, be delivered to a ship, and give out some number of points.

Attributes
Besides the global object type attributes, a treasure type has the following attributes.

Mandatory

 *  : How much it's worth.

Recommended
None.

Optional
None.

Animations
A treasure type needs to have the following animations:


 *  : Idling; used for everything.

Script
A treasure type's script cannot be changed.

Object spawn script variables
Besides the global spawn script variables, treasure type objects do not read any specific script variables.