FutureProg functions
givetrait
Overload 1
givetrait overload 1
Number givetrait(Character who, Trait trait)
Available in
- computer function
- computer program
- standard futureprog
Gives a trait (skill or attribute) to a player. Uses the opening value as if the trait had branched (for skills) or minimum value (for attributes). 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 |
Overload 2
givetrait overload 2
Number givetrait(Character who, Trait trait, Number value)
Available in
- computer function
- computer program
- standard futureprog
Gives a trait (skill or attribute) to a player with the specified value. If they already have the trait, sets the value if it is higher. 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 |