Kepler. Documentation · Scripts 422 functions available right now Français

Orion: value

On an Orion universe only. These functions exist everywhere. Once the universe is known, if it has no Orion, the settings return the error this universe does not have Orion: the module reads nothing and write nothing: see Orion.

All these settings are unticked or zero by default: without them, the module takes the nearest card, scans at the set level and claims everything. The bounds are those of the screen, refused rather than brought back: the function then returns an error and writes nothing.

Which card to take

FunctionReturns
GetOrionValueSettings()1: a structureAll the settings below: MinValueOn, MinValue, CardOrder, MaxDurationMinutes, ScanAtMax, ReplaceCards, ProfitableClaim.
SetOrionMinValue(on, threshold)1: an errorOnly take cards worth threshold, from 0 to 1000, in metal equivalent per lithium of the claim: 3 metal = 2 crystal = 1 deuterium, ships not counted. Zero means 6, the suggested threshold. With no card above it, nothing is taken.
SetOrionCardOrder(order)1: an errorThe order in which cards are tried: "distance" (the nearest, the default), "value" (the most profitable per lithium), "hour" (the most profitable per hour of mission).
SetOrionMaxDuration(minutes)1: an errorSet aside a longer card, up to 10,080 minutes. Zero: no limit.

How to scan

FunctionReturns
SetOrionScanAtMax(on)1: an errorScan at the highest level the game allows, the sum of the scanners, instead of the level of SetOrionScanLevel. The level stays within reach of the cargo at the dock.
SetOrionReplaceCards(on)1: an errorA scan erases all earlier cards, and the module only erases its own: it stops scanning while others remain. true lets it replace them. It is the way out for cards scanned by hand, or before this memory: none of them expires.

Conversion to lithium

FunctionReturns
SetOrionAutoConversion(planet)1: an errorThe line of this planet becomes "Automatic": surplus food first, then the resource whose stock exceeds six hours of income, at the load its income covers, never negative. If lithium is short for a claim, the stock is no longer kept.
SetOrionStoppedConversion(planet)1: an errorThe line of this planet becomes "Stop": the module keeps it stopped.

The planet is a celestial of the account or its identifier; a moon is refused.

Which reward to claim

FunctionReturns
SetOrionProfitableClaim(on)1: an errorLeave in the game a reward worth less than the price of its lithium, 3 metal equivalents per lithium. What cannot be valued (ships, experience, artefacts, items) is always claimed.
SetOrionMinValue(true, 6)
SetOrionCardOrder("value")
SetOrionScanAtMax(true)
for planet in GetPlanets() {
    SetOrionAutoConversion(planet)
}