• Tutorials

  • Home
  • $MODIFY_CHAR_ATTRIBUTE

    $MODIFY_CHAR_ATTRIBUTE(CharNum,<attribute>,modification,durationUnits,duration,text,source)
    This function can be used to apply a temporary modification to a character's attributes. The modification will be removed automatically when the timer expires.

    CharNum = index of character which this function will act upon.
    <attribute> = the attribute to be modified:

    modification = the value by which the attribute is to be changed. A positive number will make the attribute larger and a negative number will make it smaller.
    durationUnits = the units of time (or whatever).
    duration = Number of duration units that must elapse before the modification is removed.
    text = what should be displayed as the "Spell effect" when the character's spell effects are displayed. An empty text will cause no display whatsoever.
    source = text that can be used to identify this function's adjustements for manipulation through other functions.

    Example:
    $VAR t;
    t = $IndexOf($TargetContext());
    $MODIFY_CHAR_ATTRIBUTE(t, “STR”, 5, “MINUTES”, 1440, “More Muscle”, “xx1290b”);

    This example would add 5 to the strength of a character and the effect would last for one day.