Difference between revisions of "Varset"

From Alter Aeon Wiki
(Created page with "'''Varset''' can be used to set an alter aeon variable to a particular character stat. Type {{icode|varset help}} for a full list of the current options. ==Options== In Apri...")
 
(examples)
Line 36: Line 36:
* absz      - absorb zap
* absz      - absorb zap
* absm      - absorb magic
* 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 {{icode|var m_teeth 30}}
{{MUDdisplay|
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.
{{MUDdisplay|
if "$$(xp)" = "" varset xp exp
var xp_old $$(xp)
varset xp exp
calc $$(xp)-$$(xp_old)
}}
[[Category:Alias]]

Revision as of 14:59, 21 May 2015

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.

{{{1}}}