Varset

From Alter Aeon Wiki

Varset can be used to set an alter aeon variable to a particular character stat. Type varset help for a full list of the current options.

Options

In April 2015 the list of options was significantly extended, allowing the setting of many more character statistics such as vitials, absorbs, gold, experience, regen, armor and acorns.

  • insult <object>
  • insult -<wear location>
  • uuid <object>
  • uuid -<wear location>
  • teeth
  • dteeth
  • acorns
  • hp - hitpoints
  • hpr - hitpoint regen
  • hpm - hitpoint max
  • mana - mana
  • manar - mana regen
  • manam - mana max
  • move - move
  • mover - move regen
  • movem - move max
  • str - strength
  • int - intelligence
  • wis - wisdom
  • dex - dexterity
  • con - constitution
  • chr - charisma
  • exp - experience
  • gold - gold
  • hitroll - hitroll
  • damroll - damroll
  • armor - armor
  • sres - spell resistance
  • absf - absorb fire
  • absc - absorb cold
  • absz - absorb zap
  • absm - absorb magic

Examples

Harvest teeth

This example will only harvest teeth when collected teeth is below a certain number, to set the max number of teeth type var m_teeth 30

varset teeth teeth
if $$teeth < $$m_teeth harvest teeth corpse
if $$teeth > $$m_teeth lecho got enough teeth for now.

Experience

This example can be used to calcuate the difference in xp between two points in time. When it is first run it sets the xp to your current total and when it is run the second time it calculates how much xp was run.

if "$$(xp)" = "" varset xp exp
var xp_old $$(xp)
varset xp exp
calc $$(xp)-$$(xp_old)