Skip to content

Values

Values are numbers, text or colors that are calculated while the game runs, so a setting can follow a level, a dial, a stat or any other changing source instead of staying fixed.

6 listed · Argon 1.1.0

Ability Bar Slot

IDargon:ability_bar_slot
The slot, counting from 0, that the player has put the given ability in on the given ability bar (in the current preset, normal or crouch), or -1 if it is not assigned. Use it as an ability's list_index so assigned abilities sit together on one page of the ability list in the order of their slots, however many abilities the pool holds.
Returns Double

KeyTypeDescriptionRequiredFallback
ability_barAbility ReferenceThe argon:ability_bar ability.✓/
abilityAbility ReferenceThe pooled ability to look up.✓/

{
  "type": "argon:ability_bar_slot",
  "ability_bar": "example:power#bar",
  "ability": "example:power#ability"
}

Beam Charge

IDargon:beam_charge
Scales a value by how charged the shot of a charged argon:energy_beam was. Use it in that beam's damage, knockback or lift. Multiplies "value" by "min" at no charge and "max" at full charge.
Returns Double

KeyTypeDescriptionRequiredFallback
value(Dynamic) ValueThe value to scale.✓/
minDoubleThe multiplier at the lowest charge.✗1.0
maxDoubleThe multiplier at full charge.✗1.0

{
  "type": "argon:beam_charge",
  "value": 10,
  "max": 2
}

Flight Speed

IDargon:flight_speed
A flight speed that follows an argon:flight_speed_adjuster dial: "base" plus the dial's value divided by its division_amount. Use it for a flight type's "speed" and "sprint_speed". Just "base" while the ability is off.
Returns Double

KeyTypeDescriptionRequiredFallback
abilityAbility ReferenceThe flight speed adjuster ability whose dial to follow.✓/
baseDoubleThe speed with the dial at zero; the dial's bonus is added to this.✗0.0

{
  "type": "argon:flight_speed",
  "ability": "example:power#flight_speed_adjuster",
  "base": 1.5
}

Item Custom Value

IDargon:item_custom_value
A number a Tech Table module wrote onto the item in the given slot with its "argon:custom_value" effect, under the name given there. Uses the fallback if the item has no such value.
Returns Double

KeyTypeDescriptionRequiredFallback
slotmainhand
offhand
head
chest
legs
feet
body
curios:head
curios:necklace
The slot whose item to read, e.g. an armor slot or a curios slot.✓/
keyStringThe name the value was given in the module's effect.✓/
fallbackDoubleWhat to use when the item does not have the value.✗0.0

{
  "type": "argon:item_custom_value",
  "slot": "chest",
  "key": "example:core_power"
}

Power Age

IDargon:power_age
The age, in days, counted by an argon:time_growth ability: the time the ability has been enabled for the player, as a decimal. 0 if the ability is missing.
Returns Double

KeyTypeDescriptionRequiredFallback
abilityAbility ReferenceThe argon:time_growth ability whose age to read.✓/

{
  "type": "argon:power_age",
  "ability": "example:power#growth"
}

Smoothed

IDargon:smoothed
A number that slides toward another value at a steady speed instead of jumping, so stepped values like a beam's range change smoothly. Each entity has its own figure, which restarts if unread for half a second.
Returns Double

KeyTypeDescriptionRequiredFallback
value(Dynamic) ValueThe value to follow.✓/
speedDoubleHow far it moves towards a higher value each second, in the wrapped value's own unit.✓/
fall_speedDoubleHow far it moves towards a lower value each second; the same as "speed" if left out.✗0.0

{
  "type": "argon:smoothed",
  "value": 10,
  "speed": 12,
  "fall_speed": 12
}