This hunt: credits, cooldowns, resupplies, the call, trophies, statistics, ships, rules (since API 3).
Counters of the hunt being played (they end with it), read-outs of its trophies, statistics and ships, and
hunt.rules (HuntRules ): session versions of the hunt and score rules, undone when your mod
unloads. Getters return nothing outside a hunt; setters raise an error there.
# hunt.credits (n? ) → integer
hunt only
since API 3
Credits earned this hunt (paid when he evacuates alive).
Parameter Type
n optional integer
# hunt.relocateCooldown (s? ) → number
hunt only
since API 3
Seconds before the next relocation.
Parameter Type
s optional number
# hunt.resupplies (n? ) → integer
hunt only
since API 3
Resupplies left (Dinosaur Hunter: the profile's count; Ice Age: one per hunt).
Parameter Type
n optional integer
# hunt.relocations (n? ) → integer?
hunt only
since API 3
Relocations left (Dinosaur Hunter: the profile's count).
Parameter Type
n optional integer
Returns
integer? nil in Ice Age (not counted)
# hunt.call (species? ) → string?
hunt only
since API 3
The call (decoy): which species it imitates.
Parameter Type
species optional Species one of hunt.licensed()
Returns
string? the call's species
# hunt.callCooldown (s? ) → number
hunt only
since API 3
Seconds before the next call (3 after one).
Parameter Type
s optional number
# hunt.trophyCount () → integer
hunt only
since API 3
Trophies taken this hunt.
# hunt.licensed () → table
hunt only
since API 3
The species licensed for this hunt.
# hunt.supply () → table
hunt only
since API 3
The supply ship and its bag.
Returns
table {state = "none" | "approaching" | "dropped", bag = "none" | "falling" | "ground", inProgress, x, y, z}
# hunt.survive () → table?
hunt only
since API 3
Survive mode's state (Dinosaur Hunter; nil otherwise).
Returns
table? {wave, score, kills, killScore, accuracyBonus, time, nextWave}
# hunt.balance (key , value? ) → number?
since API 3
A balance value of the game for this session (content.setBalance is the permanent one). Only values the game reads when used act at once (SCORE_BONUS_*, RESUPPLIES_COST, RELOCATIONS_COST, PLAYER_FORWARD_SPEED_SCALE); undone when your mod unloads.
Parameter Type
keystring a balance value ("SCORE_BONUS_CAMOUFLAGE")
value optional number nil = the game's
# hunt.fields () → table
since API 3
Every member of the hunt state (Game, the characters manager, the hunt GUI: the raw layer).
Returns
table FieldInfo list
# hunt.get (name ) → any
since API 3
copy print (hunt .get("ship.state" ), hunt .get("supply.bag" ))