Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# ScriptedTechnologyTrigger - Prototype Docs

## ScriptedTechnologyTrigger :: struct

Triggered only by calling LuaForce::script_trigger_research. Can be used to show custom scripted triggers in the technology GUI.

## Properties

- default
- sorted

type | :: `"scripted"` |
trigger_description optional | :: LocalisedString |
icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]

type | :: `"scripted"` |
icon optional | :: FileName | Path to the icon file. [...]
Path to the icon file. [...]
icon_size optional | :: SpriteSizeType | The size of the square icon, in pixels. [...]
The size of the square icon, in pixels. [...]
icons optional | :: array[IconData] | Can't be an empty array.
Can't be an empty array.
trigger_description optional | :: LocalisedString |

## Properties

### type :: `"scripted"`

### trigger_description :: LocalisedString optional

### icons :: array[IconData] optional

Can't be an empty array.

### icon :: FileName optional

Path to the icon file.

Only loaded if `icons` is not defined.

### icon_size :: SpriteSizeType optional

Default: `64`

The size of the square icon, in pixels. E.g. `32` for a 32px by 32px icon. Must be larger than `0`.

Only loaded if `icons` is not defined.

Type used in

- TechnologyTrigger