Types/TriggerEffect: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated styling of prototype doc migration note)
(Removed old prototype docs)
 
Line 2: Line 2:


</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>
</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.
== 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".
* 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-explosion"</code>, that definition is loaded as a [[Types/CreateExplosionTriggerEffectItem]],
* If this is <code>"create-fire"</code>, that definition is loaded as a [[Types/CreateFireTriggerEffectItem]],
* If this is <code>"create-smoke"</code>, that definition is loaded as a [[Types/CreateSmokeTriggerEffectItem]],
* If this is <code>"create-trivial-smoke"</code>, that definition is loaded as a [[Types/CreateTrivialSmokeEffectItem]],
* 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-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>"play-sound"</code>, that definition is loaded as a [[Types/PlaySoundTriggerEffectItem]],
* If this is <code>"push-back"</code>, that definition is loaded as a [[Types/PushBackTriggerEffectItem]],
* 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>"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 14:32, 25 October 2024

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.