Skip to content

PipScale

Changed in 0.2.0

The quantity the pip row under a selected object counts, and how many pips that row has.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
rules.ini
Section
[<ObjectType ID>]
Value
PipScaleType
When omitted
none

PipScale chooses what the pip row under a selected object counts, and sets the row’s default length. Without a PipScale the row has no pips, so a transport or harvester shows nothing however full it is.

The row appears only under objects that the player or an ally owns, and under an enemy structure that one of the player’s spies has entered. A player who has been given the whole map sees the row under every object, as observers and coach mode describes.

ValueRow lengthWhat fills it
AmmoAmmo, at most 5remaining ammunition as a share of Ammo, drawn as filled markers with no empty ones behind them; at least one marker shows while any ammunition is left
Tiberium5 on a vehiclestored Tiberium as a share of Storage
PassengersPassengers, at most 5the passengers on board
Power10nothing is drawn
Charge8a vehicle’s charge as a share of MaxCharge

MaxPips replaces these lengths. The Ammo and Passengers rows stay capped by the type’s Ammo and Passengers values.

This vehicle shows a five-pip row that fills as passengers board:

rules.ini
[MYAPC] ; a UnitType registered in [VehicleTypes]
Passengers=5
PipScale=Passengers

On a structure, the Tiberium and Power rows default to six pips per cell of footprint width, or to MaxPips where the type sets it. Under Tiberium, that length is capped by the structure’s Storage, so a structure with no Storage shows no row. A Weeder=yes structure is capped by [General] WeedCapacity instead, and its row shows how much weed its whole house holds.

A type with Passengers above zero always shows its passengers, whatever its PipScale. Each passenger fills as many pips as its Size, and at least one, in the colors that Pip describes. Free space is empty. The scale still sets the row’s length, so passengers past the end of the row get no pip. A transport with PipScale=Ammo, for example, shows its passengers in a row sized by its ammunition.

A vehicle set to Tiberium shows the first Tiberium type as green pips and every other type as blue pips.

Omitting the key keeps the value an earlier rules file set. A value that matches none of the pip scales replaces it with none, which removes the row.

History

  1. Changed0.2.0In development

    Let a type set how many pips its row has