FutureProg functions
temptraitbonus
Overload 1
temptraitbonus overload 1
Effect temptraitbonus(Character who, Trait trait, Number bonus, Text reference, Number prog, TimeSpan duration)
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.
| Parameter | Type | Description |
|---|---|---|
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 |
duration |
TimeSpan |
The time for this effect to apply before expiring |
Overload 2
temptraitbonus overload 2
Effect temptraitbonus(Character who, Trait trait, Number bonus, Text reference, Text prog, TimeSpan duration)
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.
| Parameter | Type | Description |
|---|---|---|
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 |
duration |
TimeSpan |
The time for this effect to apply before expiring |
Overload 3
temptraitbonus overload 3
Effect temptraitbonus(Character who, Trait trait, Number bonus, Text reference, TimeSpan duration)
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.
| Parameter | Type | Description |
|---|---|---|
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) |
duration |
TimeSpan |
The time for this effect to apply before expiring |