Jump to content

CinderRPG Wiki:Variables

From CinderRPG Wiki

This page lists every live value from the mod that editors can use, by group. Open a group, copy the code from the last column into any page, and the wiki shows the current value. It updates by itself whenever the mod changes, so nobody has to fix numbers by hand.

  • {{V|food.slots}} shows the value with its unit.
  • {{V|food.slots|unit=no}} leaves the unit off.
  • {{V|food.slots|raw=1}} gives the exact number from the code.
  • Capitals do not matter. A mistyped name shows a red warning that suggests the closest match.

Item and spell stats work the same way without being listed here, for example {{V|item.ashenblade.damage}} or {{V|spell.firebolt.mana}}. See #Item and spell stats.

Groups

Group Variables List
food 213 Open the food list
weapon 4289 Open the weapon list

Item and spell stats

Any item or spell stat can be shown without being listed above. Use the item ID (the end of its page address) or the spell key:

  • {{V|item.ashenblade.damage}}
  • {{V|spell.firebolt.mana}}
  • For one variant of an item, add @ and the variant: {{V|item.thatch@2.hardness}}
  • Any field on the item's data page works too, for example {{V|item.ashenblade.ranged.reload}}
Item stat Reads (first one the item has)
armor armour.armour
armour armour.armour
damage weapon.baseDamage, ranged.damage, melee.attackDamage
dps ranged.sustainedDps
durability maxDamage
hardness block.hardness
hunger food.hunger
magazine ranged.magazine
name name
projectiles ranged.projectiles
rarity weapon.rarity, bauble.rarity
reload ranged.reload
saturation food.saturation
slot bauble.slot, armour.slot
speed melee.attackSpeed
stack stackSize
toughness armour.toughness
type weapon.type
Spell stat Reads
burnout burnoutSeconds
charge chargeSeconds
cooldown cooldownSeconds
damage baseDamage
mana manaCost