$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:
- STR = strength
- STRMOD = strength modifier
- INT = intelligence
- WIS = wisdom
- DEC = dexterity
- CON = constitution
- CHA = charisma
durationUnits = the units of time (or whatever).
- "MINUTES" = party minutes
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.