FutureProg functions

traitbonus

Charactercomputer function, computer program, standard futureprog

Overload 1

traitbonus overload 1

Effect traitbonus(Character who, Trait trait, Number bonus, Text reference)
Available in
  • computer function
  • computer program
  • standard futureprog
Adds an effect to a character that gives a bonus to a trait. You also supply a reference bit of text. Each character can only have one effect with a specific reference, so you can use this to ensure that bonuses don't get stacked. You also use it to remove the specific bonus later. Returns the effect that it adds.
ParameterTypeDescription
who Character The character who has the trait
trait Trait The trait to give the bonus to
bonus Number The bonus to give to the trait
reference Text A reference text to group similar bonuses (will overwrite anything with the same)

Overload 2

traitbonus overload 2

Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Number prog)
Available in
  • computer function
  • computer program
  • standard futureprog
Adds an effect to a character that gives a bonus to a trait. You also supply a reference bit of text. Each character can only have one effect with a specific reference, so you can use this to ensure that bonuses don't get stacked. You also use it to remove the specific bonus later. Returns the effect that it adds.
ParameterTypeDescription
who Character The character who has the trait
trait Trait The trait to give the bonus to
bonus Number The bonus to give to the trait
reference Text A reference text to group similar bonuses (will overwrite anything with the same)
prog Number The id of a prog that controls if the bonus applies

Overload 3

traitbonus overload 3

Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Text prog)
Available in
  • computer function
  • computer program
  • standard futureprog
Adds an effect to a character that gives a bonus to a trait. You also supply a reference bit of text. Each character can only have one effect with a specific reference, so you can use this to ensure that bonuses don't get stacked. You also use it to remove the specific bonus later by setting the trait/reference combination to zero bonus. Returns the effect that it adds.
ParameterTypeDescription
who Character The character who has the trait
trait Trait The trait to give the bonus to
bonus Number The bonus to give to the trait
reference Text A reference text to group similar bonuses (will overwrite anything with the same)
prog Text The name of a prog that controls if the bonus applies