FutureProg functions

givetrait

Character · computer function, computer program, standard futureprog

Number givetrait(Character who, Trait trait)
Contexts: 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
who: The character to give the trait to
trait: The trait to give the character

Number givetrait(Character who, Trait trait, Number value)
Contexts: 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
who: The character to give the trait to
trait: The trait to give the character
value: The value of the trait

← Back to FutureProg functions