FutureProg functions
settrait
settrait overload 1
Number settrait(Character who, Trait trait, Number value)
Available in
- computer function
- computer program
- standard futureprog
Sets the value of a trait (skill or attribute) for a player with the specified value. Gives them the trait if they don't have it but can lower the value if they already have it but it is higher than the value you specify. Returns the value of the trait
| Parameter | Type | Description |
|---|---|---|
who |
Character |
The character to give the trait to |
trait |
Trait |
The trait to give the character |
value |
Number |
The value of the trait |