NERPs material collecting objective

The material collecting objective is the most common type of mission objective in LEGO Rock Raiders for Windows. In order to complete this type of mission, the player needs to collect a designated amount of a certain material. All of the original levels that have this kind of objective require the player to specifically collect energy crystals. However, it is also possible to have the mission require that a designated amount of ore be collected instead.

Crystal collecting objective

This is the simplest kind of objective script as its major component is only one line of information:

 GetCrystalsCurrentlyStored > 39 ? SetLevelCompleted

"39" can be any designated value. As soon as the crystal count goes above this number, (i.e. equals 40), the mission is completed. When encrypted this simply translates to:

 0D 00 02 00 05 00 01 00 27 00 00 00 04 00 01 00 08 00 02 00

where "0D 00 02 00" is the crystal count parameter, "05 00 01 00" is the ">" function symbol, "27 00 00 00" is the number "39", "04 00 01 00" is the second "?" function symbol, and 08 00 02 00 is the level completion parameter.

Ore collecting objective

Though never used in the game as an objective, this script is practically identical to the crystal collecting objective and simply swaps the crystal count parameter with the ore count parameter like so:

 GetOreCurrentlyStored > 39 ? SetLevelCompleted

It works the same way, so when the ore count goes above 39, the level is completed. When encrypted this translates to:

 61 00 02 00 05 00 01 00 27 00 00 00 04 00 01 00 08 00 02 00

where "61 00 02 00" is the ore count parameter.

Examples of missions with this type of objective