Difference between revisions of "Types/TriggerEffect"

From Official Factorio Wiki
Jump to: navigation, search
(0.18.18: script trigger effect item)
(1.0.0)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
'''Type''': [[Types/string]]
 
'''Type''': [[Types/string]]
  
Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "nested-result", "play-sound", "push-back", "destroy-cliffs" or "show-explosion-on-chart".
+
Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "create-decorative", "nested-result", "play-sound", "push-back", "destroy-cliffs", "show-explosion-on-chart", "insert-item", "script", "set-tile", "invoke-tile-trigger", "destroy-decoratives" or "camera-effect".
 
* If this is <code>"damage"</code>, that definition is loaded as a [[Types/DamageTriggerEffectItem]],
 
* If this is <code>"damage"</code>, that definition is loaded as a [[Types/DamageTriggerEffectItem]],
 
* If this is <code>"create-entity"</code>, that definition is loaded as a [[Types/CreateEntityTriggerEffectItem]],
 
* If this is <code>"create-entity"</code>, that definition is loaded as a [[Types/CreateEntityTriggerEffectItem]],
Line 13: Line 13:
 
* If this is <code>"create-particle"</code>, that definition is loaded as a [[Types/CreateParticleTriggerEffectItem]],
 
* If this is <code>"create-particle"</code>, that definition is loaded as a [[Types/CreateParticleTriggerEffectItem]],
 
* If this is <code>"create-sticker"</code>, that definition is loaded as a [[Types/CreateStickerTriggerEffectItem]],
 
* If this is <code>"create-sticker"</code>, that definition is loaded as a [[Types/CreateStickerTriggerEffectItem]],
 +
* If this is <code>"create-decorative"</code>, that definition is loaded as a [[Types/CreateDecorativesTriggerEffectItem]],
 
* If this is <code>"nested-result"</code>, that definition is loaded as a [[Types/NestedTriggerEffectItem]],
 
* If this is <code>"nested-result"</code>, that definition is loaded as a [[Types/NestedTriggerEffectItem]],
 
* If this is <code>"play-sound"</code>, that definition is loaded as a [[Types/PlaySoundTriggerEffectItem]],
 
* If this is <code>"play-sound"</code>, that definition is loaded as a [[Types/PlaySoundTriggerEffectItem]],
Line 18: Line 19:
 
* If this is <code>"destroy-cliffs"</code>, that definition is loaded as a [[Types/DestroyCliffsTriggerEffectItem]],
 
* If this is <code>"destroy-cliffs"</code>, that definition is loaded as a [[Types/DestroyCliffsTriggerEffectItem]],
 
* If this is <code>"show-explosion-on-chart"</code>, that definition is loaded as a [[Types/ShowExplosionOnChartTriggerEffectItem]],
 
* If this is <code>"show-explosion-on-chart"</code>, that definition is loaded as a [[Types/ShowExplosionOnChartTriggerEffectItem]],
* If this is <code>"insert-item"</code>, that definition is loaded as a [[Types/InsertItemTriggerEffectItem]].
+
* If this is <code>"insert-item"</code>, that definition is loaded as a [[Types/InsertItemTriggerEffectItem]],
* If this is <code>"script"</code>, that definition is loaded as a [[Types/ScriptTriggerEffectItem]].
+
* If this is <code>"script"</code>, that definition is loaded as a [[Types/ScriptTriggerEffectItem]],
 +
* If this is <code>"set-tile"</code>, that definition is loaded as a [[Types/SetTileTriggerEffectItem]],
 +
* If this is <code>"invoke-tile-trigger"</code>, that definition is loaded as a [[Types/InvokeTileEffectTriggerEffectItem]],
 +
* If this is <code>"destroy-decoratives"</code>, that definition is loaded as a [[Types/DestroyDecorativesTriggerEffectItem]],
 +
* If this is <code>"camera-effect"</code>, that definition is loaded as a [[Types/CameraEffectTriggerEffectItem]].
  
 
{{Prototype property type usage|{{FULLPAGENAME}}}}
 
{{Prototype property type usage|{{FULLPAGENAME}}}}

Latest revision as of 12:57, 4 September 2020

An array of types/tables, or just one types/table. The tables are each loaded as one of the Types/TriggerEffectItem extensions, depending on the value of the type key in the table.

type

Type: Types/string

Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "create-decorative", "nested-result", "play-sound", "push-back", "destroy-cliffs", "show-explosion-on-chart", "insert-item", "script", "set-tile", "invoke-tile-trigger", "destroy-decoratives" or "camera-effect".

Prototype properties that use this type