Changes

Jump to navigation Jump to search
→‎Custom buffs: update for 1.6 build 24044 (added ActionsOnApply, changed endless value to -2)
Line 6,312: Line 6,312:  
|-
 
|-
 
| <samp>Duration</samp>
 
| <samp>Duration</samp>
| The duration in milliseconds for which the buff should be active. This can be the exact value <samp>-999888</samp> for a buff that should last for the rest of the day.
+
| The duration in milliseconds for which the buff should be active. This can be set to value <samp>-2</samp> for a buff that should last for the rest of the day.
 
|-
 
|-
 
| <samp>MaxDuration</samp>
 
| <samp>MaxDuration</samp>
Line 6,338: Line 6,338:  
| ''(Optional)'' An amount applied to the player's [[attack]], [[defense]], [[Magnetism|magnetic radius]], maximum [[Energy|stamina]], or [[speed]] while the buff is active. This can be negative for a debuff. Default 0.
 
| ''(Optional)'' An amount applied to the player's [[attack]], [[defense]], [[Magnetism|magnetic radius]], maximum [[Energy|stamina]], or [[speed]] while the buff is active. This can be negative for a debuff. Default 0.
 
|}
 
|}
 +
|-
 +
| <samp>ActionsOnApply</samp>
 +
| ''(Optional)'' Run any number of [[Modding:Trigger actions|trigger action strings]] when the buff is applied to the current player. For example, this increments a player stat:
 +
<syntaxhighlight lang="js">
 +
"ActionsOnApply": [
 +
    "IncrementStat {{ModId}}_NumberEaten 1"
 +
]
 +
</syntaxhighlight>
 
|-
 
|-
 
| <samp>CustomFields</samp>
 
| <samp>CustomFields</samp>
translators
8,404

edits

Navigation menu