Types/TriggerEffect: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(Updated styling of prototype doc migration note)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TriggerEffect.html https://lua-api.factorio.com/latest/types/TriggerEffect.html]
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
An array of [[types/table]]s, or just one [[types/table]]. The tables are each loaded as one of the [[Types/TriggerEffectItem]] extensions, depending on the value of the <code>type</code> key in the table.
An array of [[types/table]]s, or just one [[types/table]]. The tables are each loaded as one of the [[Types/TriggerEffectItem]] extensions, depending on the value of the <code>type</code> key in the table.


Line 4: Line 10:
'''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 19:
* 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 25:
* 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>"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}}}}

Latest revision as of 10:42, 21 September 2023

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TriggerEffect.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


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