Changes between Version 1 and Version 2 of olivine/dsl/attribs/modifier


Ignore:
Timestamp:
Sep 11, 2022 1:22:58 PM (20 months ago)
Author:
jonathan
Comment:

Attribute modifiers expressed as a morphed data value using 'with' reserved word.

Legend:

Unmodified
Added
Removed
Modified
  • olivine/dsl/attribs/modifier

    v1 v2  
    1717||`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||
    1818||`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 =
     21It 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 ==
     24Applies ''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}}}