Modifier
This is an object
.
Field Name | Optional? | Description | Data Type |
---|---|---|---|
Fields from |
|||
trigger |
Type of trigger | TriggerType |
|
trigger_on_type |
This trigger happens for items that have an item type in this list Default value: ['Any'] |
Array of ItemType |
|
trigger_area |
This trigger happens for items that are in an area in this list Default value: ['self'] |
Array of Area |
|
trigger_distance |
Area distance to apply to the Areas in trigger_area. This further narrows the area radius to closest or adjacent items. Default value: all |
AreaDistance |
|
needs_activation |
If this is true, then this trigger must first be activated by giving the item the ItemStatusEffect isActivated |
boolean |
|
trigger_description |
Use, if the game cannot provide a description for this trigger or if you want to override it. See Custom Descriptions for more info. | string or MultiLanguage |
|
Fields from |
|||
effects |
Effects that get applied for this modifier. These are indirect effects. E.g. +2 Damage does not attack the enemy for 2 Damage. Instead it increases the affected item's damage power by 2. Only the first effect in this array gets shown on the item card, but all get executed. If you need all of them to show on the item card, put them in seperate modifiers. |
Array of Effect |
|
mod_types |
Item Types this modifier affects Default value: ['Any'] |
Array of ItemType |
|
mod_area |
Area this modifier affects Default value: ['self'] |
Array of Area |
|
mod_distance |
Defines the distance the mod_area checks. E.g. if your area is column and your distance is closest , it would only affect the item in this column that's closest to the item this modifier originates from.Default value: all |
AreaDistance |
|
length |
Length that this modifier applies for Default value: whileActive |
ModifierLength |
|
stackable |
If this is true, effects from this modifier can be stacked. E.g. if a modifier like If a fish is adjacent to this, +1 Block to self has the stackable property, and there are 3 adjacent fish, the affected item will get +3 block.Default value: false |
boolean |
|
description |
Use, if the game cannot provide a description for this modifier or if you want to override it. See Custom Descriptions for more info. | string or MultiLanguage |