FutureProg functions
traitbonus
Effect traitbonus(Character who, Trait trait, Number bonus, Text reference)
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Number prog)
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
prog: The id of a prog that controls if the bonus applies
Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Text prog)
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
prog: The name of a prog that controls if the bonus applies
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Number prog)
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
prog: The id of a prog that controls if the bonus applies
Effect traitbonus(Character who, Trait trait, Number bonus, Text reference, Text prog)
Contexts: 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.
who: The character who has the trait
trait: The trait to give the bonus to
bonus: The bonus to give to the trait
reference: A reference text to group similar bonuses (will overwrite anything with the same)
prog: The name of a prog that controls if the bonus applies