Changes between Version 1 and Version 2 of olivine/dsl/attribs/modifier
- Timestamp:
- Sep 11, 2022 1:22:58 PM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
olivine/dsl/attribs/modifier
v1 v2 17 17 ||`augment`||1||''current value'' += ''base value'' * `amount`||The ''current value'' is increased by an amount calculated by multiplying the ''base value'' of the attribute by the `amount` value|| 18 18 ||`scale`||2||''current value'' *= `amount` + 1||The ''current value'' is multiplied by `amount` times plus one, in other words, a value of 0 doesn't increase it or decrease it but a value of 1 will double the current value, 2 will triple, etc.|| 19 20 = As a Morph = 21 It is possible to define an attribute modifier as a morphed data value using the ''with'' reserved word. This is useful for defining non-standard (modded) attribute modifiers beyond the default Vanilla ones. 22 23 == Syntax Example == 24 Applies ''intelligence'' to a set of attribute modifiers: 25 {{{ 26 modifiers → { 27 ext → [ 28 attr &mmm:intelligence with { 29 operator → boost 30 amount → 0.25 31 } 32 ] 33 } 34 }}}