Types/TipTrigger: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎BuildEntityTipTrigger: 1.1.40: build_in_line added)
(1.1.43: count default changed)
Line 75: Line 75:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 150: Line 150:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 159: Line 159:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 175: Line 175:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 191: Line 191:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 224: Line 224:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 233: Line 233:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 242: Line 242:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 258: Line 258:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 267: Line 267:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 276: Line 276:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 302: Line 302:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.
Line 328: Line 328:
'''Type''': [[Types/uint32]]
'''Type''': [[Types/uint32]]


'''Default''': 0
'''Default''': 1


Optional.
Optional.

Revision as of 12:58, 24 November 2021

A Types/table that is loaded as one of the below listed types, depending on the value of the type key in the table.

type is a mandatory member of the table and of type string. It may have one of the following values:


OrTipTrigger

type = "or"

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

type = "and"

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

type = "sequence"

triggers

Type: Types/table of Types/TipTrigger

Array of other tip triggers.

DependenciesMetTipTrigger

type = "dependencies-met" This tip trigger is considered fulfilled when the dependencies of the Prototype/TipsAndTricksItem are fulfilled.

TimeElapsedTipTrigger

type = "time-elapsed"

ticks

Type: Types/uint32

ResearchTechnologyTipTrigger

type = "research"

technology

Type: Types/string

Name of a Prototype/Technology. Mandatory.

UnlockedRecipeTipTrigger

type = "unlocked-recipe"

recipe

Type: Types/string

Name of a Prototype/Recipe. Mandatory.

CraftItemTipTrigger

type = "craft-item"

count

Type: Types/uint32

Default: 1

Optional.

item

Type: Types/string

Name of a Prototype/Item. Optional.

consecutive

Type: Types/bool

Default: false

Optional. Can only be used with event_type "crafting-finished".

event_type

Type: Types/string

Mandatory. One of "crafting-of-single-item-ordered", "crafting-of-multiple-items-ordered" or "crafting-finished".

BuildEntityTipTrigger

type = "build-entity"

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.

consecutive

Type: Types/bool

Default: false

Optional. Building is considered consecutive when the built entity is the same as the last built entity.

linear_power_pole_line

Type: Types/bool

Default: false

Optional.

build_in_line

Type: Types/bool

Default: false

Optional.

ManualTransferTipTrigger

type = "manual-transfer"

count

Type: Types/uint32

Default: 1

Optional.

StackTransferTipTrigger

type = "stack-transfer"

count

Type: Types/uint32

Default: 1

Optional.

transfer

Type: Types/string

Default: any transfer

Optional. One of "stack", "inventory" or "whole-inventory".

EntityTransferTipTrigger

type = "entity-transfer"

count

Type: Types/uint32

Default: 1

Optional.

transfer

Type: Types/string

Default: any transfer

Optional. One of "in" or "out".

SetRecipeTipTrigger

type = "set-recipe"

count

Type: Types/uint32

Default: 1

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

type = "limit-chest"

count

Type: Types/uint32

Default: 1

Optional.

UsePipetteTipTrigger

type = "use-pipette"

count

Type: Types/uint32

Default: 1

Optional.

SetLogisticRequestTipTrigger

type = "set-logistic-request"

count

Type: Types/uint32

Default: 1

Optional.

logistic_chest_only

Type: Types/bool

Default: false

Optional.

UseConfirmTipTrigger

type = "use-confirm"

count

Type: Types/uint32

Default: 1

Optional.

LowPowerTipTrigger

type = "low-power"

count

Type: Types/uint32

Default: 1

Optional.

PasteEntitySettingsTipTrigger

type = "paste-entity-settings"

count

Type: Types/uint32

Default: 1

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

type = "fast-replace"

count

Type: Types/uint32

Default: 1

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

type = "group-attack"

count

Type: Types/uint32

Default: 1

Optional.