Types/TipTrigger: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1)
 
(Removed old prototype docs)
Tag: Replaced
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A [[Types/table]] that is loaded as one of the below listed types, depending on the value of the <code>type</code> key in the table.
<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/TipTrigger.html https://lua-api.factorio.com/latest/types/TipTrigger.html]


<code>type</code> is a mandatory member of the table and of type [[Types/string|string]]. It may have one of the following values:
</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>
* <code>"or"</code> is loaded as a [[#OrTipTrigger|OrTipTrigger]]
* <code>"and"</code> is loaded as a [[#AndTipTrigger|AndTipTrigger]]
* <code>"sequence"</code> is loaded as a [[#SequenceTipTrigger|SequenceTipTrigger]]
* <code>"dependencies-met"</code> is loaded as a [[#DependenciesMetTipTrigger|DependenciesMetTipTrigger]]
* <code>"time-elapsed"</code> is loaded as a [[#TimeElapsedTipTrigger|TimeElapsedTipTrigger]]
* <code>"research"</code> is loaded as a [[#ResearchTechnologyTipTrigger|ResearchTechnologyTipTrigger]]
* <code>"unlocked-recipe"</code> is loaded as a [[#UnlockedRecipeTipTrigger|UnlockedRecipeTipTrigger]]
* <code>"craft-item"</code> is loaded as a [[#CraftItemTipTrigger|CraftItemTipTrigger]]
* <code>"build-entity"</code> is loaded as a [[#BuildEntityTipTrigger|BuildEntityTipTrigger]]
* <code>"manual-transfer"</code> is loaded as a [[#ManualTransferTipTrigger|ManualTransferTipTrigger]]
* <code>"stack-transfer"</code> is loaded as a [[#StackTransferTipTrigger|StackTransferTipTrigger]]
* <code>"entity-transfer"</code> is loaded as a [[#EntityTransferTipTrigger|EntityTransferTipTrigger]]
* <code>"set-recipe"</code> is loaded as a [[#SetRecipeTipTrigger|SetRecipeTipTrigger]]
* <code>"limit-chest"</code> is loaded as a [[#LimitChestTipTrigger|LimitChestTipTrigger]]
* <code>"use-pipette"</code> is loaded as a [[#UsePipetteTipTrigger|UsePipetteTipTrigger]]
* <code>"set-logistic-request"</code> is loaded as a [[#SetLogisticRequestTipTrigger|SetLogisticRequestTipTrigger]]
* <code>"use-confirm"</code> is loaded as a [[#UseConfirmTipTrigger|UseConfirmTipTrigger]]
* <code>"low-power"</code> is loaded as a [[#LowPowerTipTrigger|LowPowerTipTrigger]]
* <code>"paste-entity-settings"</code> is loaded as a [[#PasteEntitySettingsTipTrigger|PasteEntitySettingsTipTrigger]]
* <code>"fast-replace"</code> is loaded as a [[#FastReplaceTipTrigger|FastReplaceTipTrigger]]
* <code>"group-attack"</code> is loaded as a [[#GroupAttackTipTrigger|GroupAttackTipTrigger]]
 
 
__TOC__
== OrTipTrigger ==
<code>type = "or"</code>
=== triggers ===
'''Type''': [[Types/table]] of [[Types/TipTrigger]]
 
Array of other tip triggers, if at least one of them is fulfilled, this tip trigger is considered fulfilled.
 
== AndTipTrigger ==
<code>type = "and"</code>
=== triggers ===
'''Type''': [[Types/table]] of [[Types/TipTrigger]]
 
Array of other tip triggers, if all of them are fulfilled, this tip trigger is considered fulfilled.
 
== SequenceTipTrigger ==
<code>type = "sequence"</code>
=== triggers ===
'''Type''': [[Types/table]] of [[Types/TipTrigger]]
 
Array of other tip triggers.
 
== DependenciesMetTipTrigger ==
<code>type = "dependencies-met"</code>
This tip trigger is considered fulfilled when the dependencies of the [[Prototype/TipsAndTricksItem]] are fulfilled.
 
== TimeElapsedTipTrigger ==
<code>type = "time-elapsed"</code>
=== ticks ===
'''Type''': [[Types/uint32]]
 
== ResearchTechnologyTipTrigger ==
<code>type = "research"</code>
=== technology ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Technology]]. Mandatory.
 
== UnlockedRecipeTipTrigger ==
<code>type = "unlocked-recipe"</code>
=== recipe ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Recipe]]. Mandatory.
 
== CraftItemTipTrigger ==
<code>type = "craft-item"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== item ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Item]]. Optional.
 
=== consecutive ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional. Can only be used with <code>event_type</code> "crafting-finished".
 
=== event_type ===
'''Type''': [[Types/string]]
 
Mandatory. One of "crafting-of-single-item-ordered", "crafting-of-multiple-items-ordered" or "crafting-finished".
 
== BuildEntityTipTrigger ==
<code>type = "build-entity"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 1
 
Optional.
 
=== entity ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== match_type_only ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
=== build_by_dragging ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
== ManualTransferTipTrigger ==
<code>type = "manual-transfer"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
== StackTransferTipTrigger ==
<code>type = "stack-transfer"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== transfer ===
'''Type''': [[Types/string]]
 
'''Default''': any transfer
 
Optional. One of "stack", "inventory" or "whole-inventory".
 
== EntityTransferTipTrigger ==
<code>type = "entity-transfer"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== transfer ===
'''Type''': [[Types/string]]
 
'''Default''': any transfer
 
Optional. One of "in" or "out".
 
== SetRecipeTipTrigger ==
<code>type = "set-recipe"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== recipe ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Recipe]]. Optional.
 
=== machine ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== consecutive ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
=== uses_fluid ===
'''Type''': [[Types/bool]]
 
'''Default''': any (= it does not matter)
 
Optional.
 
== LimitChestTipTrigger ==
<code>type = "limit-chest"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
== UsePipetteTipTrigger ==
<code>type = "use-pipette"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
== SetLogisticRequestTipTrigger ==
<code>type = "set-logistic-request"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== logistic_chest_only ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
== UseConfirmTipTrigger ==
<code>type = "use-confirm"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
== LowPowerTipTrigger ==
<code>type = "low-power"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
== PasteEntitySettingsTipTrigger ==
<code>type = "paste-entity-settings"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== source ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== target ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== match_type_only ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
== FastReplaceTipTrigger ==
<code>type = "fast-replace"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.
 
=== source ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== target ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/Entity]]. Optional.
 
=== match_type_only ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Optional.
 
== GroupAttackTipTrigger ==
<code>type = "group-attack"</code>
=== count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 0
 
Optional.

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/TipTrigger.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.