Reference(kind:Str, id:Int):Reference

Produces a reference to an object (unit, component, etc.). The kind parameter determines the object type:

  • "b", "base": starbase (see Planet())
  • "e", "engine": engine (see Engine())
  • "h", "hull": hull (see Hull())
  • "i", "storm": ion storm (see Storm())
  • "m", "minefield": minefield (see Minefield())
  • "p", "planet": planet (see Planet())
  • "s", "ship": ship (see Ship())
  • "t", "torpedo": torpedo (see Launcher())
  • "w", "beam": beam weapon (see Beam())
  • "y", "player": player (see Player())

Experimental and subject to change:

  • "u", "ufo": Ufo (see Ufo())
  • "special": special entry.

The referenced object need not exist.

See also: Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.