Types/TriggerEffect: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(1.0.0) |
||
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", "show-explosion-on-chart", "insert-item", "script", "invoke-tile-trigger" | 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>"invoke-tile-trigger"</code>, that definition is loaded as a [[Types/InvokeTileEffectTriggerEffectItem]] | * If this is <code>"set-tile"</code>, that definition is loaded as a [[Types/SetTileTriggerEffectItem]], | ||
* If this is <code>"destroy-decoratives"</code>, that definition is loaded as a [[Types/DestroyDecorativesTriggerEffectItem]]. | * 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".
- If this is
"damage"
, that definition is loaded as a Types/DamageTriggerEffectItem, - If this is
"create-entity"
, that definition is loaded as a Types/CreateEntityTriggerEffectItem, - If this is
"create-explosion"
, that definition is loaded as a Types/CreateExplosionTriggerEffectItem, - If this is
"create-fire"
, that definition is loaded as a Types/CreateFireTriggerEffectItem, - If this is
"create-smoke"
, that definition is loaded as a Types/CreateSmokeTriggerEffectItem, - If this is
"create-trivial-smoke"
, that definition is loaded as a Types/CreateTrivialSmokeEffectItem, - If this is
"create-particle"
, that definition is loaded as a Types/CreateParticleTriggerEffectItem, - If this is
"create-sticker"
, that definition is loaded as a Types/CreateStickerTriggerEffectItem, - If this is
"create-decorative"
, that definition is loaded as a Types/CreateDecorativesTriggerEffectItem, - If this is
"nested-result"
, that definition is loaded as a Types/NestedTriggerEffectItem, - If this is
"play-sound"
, that definition is loaded as a Types/PlaySoundTriggerEffectItem, - If this is
"push-back"
, that definition is loaded as a Types/PushBackTriggerEffectItem, - If this is
"destroy-cliffs"
, that definition is loaded as a Types/DestroyCliffsTriggerEffectItem, - If this is
"show-explosion-on-chart"
, that definition is loaded as a Types/ShowExplosionOnChartTriggerEffectItem, - If this is
"insert-item"
, that definition is loaded as a Types/InsertItemTriggerEffectItem, - If this is
"script"
, that definition is loaded as a Types/ScriptTriggerEffectItem, - If this is
"set-tile"
, that definition is loaded as a Types/SetTileTriggerEffectItem, - If this is
"invoke-tile-trigger"
, that definition is loaded as a Types/InvokeTileEffectTriggerEffectItem, - If this is
"destroy-decoratives"
, that definition is loaded as a Types/DestroyDecorativesTriggerEffectItem, - If this is
"camera-effect"
, that definition is loaded as a Types/CameraEffectTriggerEffectItem.
Prototype properties that use this type
- Prototype/ArtilleryFlare : ended_in_water_trigger_effect
- Prototype/ArtilleryFlare : regular_trigger_effect
- Prototype/Decorative : trigger_effect
- Prototype/EntityWithHealth : damaged_trigger_effect
- Prototype/EntityWithHealth : dying_trigger_effect
- Prototype/Particle : ended_in_water_trigger_effect
- Prototype/Particle : ended_on_ground_trigger_effect
- Prototype/Particle : regular_trigger_effect
- Prototype/Roboport : close_door_trigger_effect
- Prototype/Roboport : open_door_trigger_effect
- Prototype/RocketSilo : alarm_trigger
- Prototype/RocketSilo : clamps_off_trigger
- Prototype/RocketSilo : clamps_on_trigger
- Prototype/RocketSilo : doors_trigger
- Prototype/RocketSilo : raise_rocket_trigger
- Prototype/RocketSiloRocket : flying_trigger
- Prototype/RollingStock : drive_over_tie_trigger
- Prototype/Tile : trigger_effect
- Prototype/Vehicle : crash_trigger
- Prototype/Vehicle : stop_trigger