Types/TriggerEffect: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Prototype property type usage)
(0.18.18: script trigger effect item)
Line 19: Line 19:
* 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]].


{{Prototype property type usage|{{FULLPAGENAME}}}}
{{Prototype property type usage|{{FULLPAGENAME}}}}

Revision as of 12:03, 9 April 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", "nested-result", "play-sound", "push-back", "destroy-cliffs" or "show-explosion-on-chart".

Template:Prototype property type usage