Prototype/Achievement: Difference between revisions
Jump to navigation
Jump to search
(0.16) |
|||
Line 1: | Line 1: | ||
==Basics== | == Basics == | ||
This Prototype | This Prototype definition is used for the in-game achievements. | ||
==Extensions== | == Extensions == | ||
*[[Prototype/BuildEntityAchievement]] '''build-entity-achievement''' | *[[Prototype/BuildEntityAchievement]] '''build-entity-achievement''' | ||
*[[Prototype/CombatRobotCount]] '''combat-robot-count''' | *[[Prototype/CombatRobotCount]] '''combat-robot-count''' | ||
Line 18: | Line 18: | ||
*[[Prototype/ResearchAchievement]] '''research-achievement''' | *[[Prototype/ResearchAchievement]] '''research-achievement''' | ||
*[[Prototype/TrainPathAchievement]] '''train-path-achievement''' | *[[Prototype/TrainPathAchievement]] '''train-path-achievement''' | ||
==Mandatory | == Mandatory properties == | ||
Inherits all properties from [[Prototype]]. | Inherits all properties from [[Prototype]]. | ||
=== icons, icon, icon_size (IconSpecification) === | === icons, icon, icon_size (IconSpecification) === | ||
'''Type''': [[Types/IconSpecification]] | '''Type''': [[Types/IconSpecification]] | ||
== Optional properties == | |||
===steam_stats_name=== | ===steam_stats_name=== | ||
'''Type''': [[Types/string]] | '''Type''': [[Types/string]] | ||
'''Default''': "" | |||
Unusable by mods, as this refers to unlocking the achievement through Steam. | Unusable by mods, as this refers to unlocking the achievement through Steam. | ||
== | === allowed_without_fight === | ||
'''Type''': [[Types/bool]] | '''Type''': [[Types/bool]] | ||
'''Default''': true | |||
If this is set to false, ite is not possible to complete the achievement on the peaceful difficulty setting or when the enemy base generation settings have been changed. | |||
=== | === hidden === | ||
'''Type''': [[Types/bool]] | '''Type''': [[Types/bool]] | ||
'''Default''': false | |||
==Example== | ==Example== | ||
{ | <syntaxhighlight lang="lua">{ | ||
type = " | type = "achievement", | ||
name = " | name = "so-long-and-thanks-for-all-the-fish", | ||
order = " | order = "g[secret]-a[so-long-and-thanks-for-all-the-fish]", | ||
icon = "__base__/graphics/achievement/so-long-and-thanks-for-all-the-fish.png", | |||
icon_size = 128 | |||
}</syntaxhighlight> | |||
icon = "__base__/graphics/achievement/ | |||
} |
Revision as of 17:33, 19 May 2018
Basics
This Prototype definition is used for the in-game achievements.
Extensions
- Prototype/BuildEntityAchievement build-entity-achievement
- Prototype/CombatRobotCount combat-robot-count
- Prototype/ConstructWithRobotsAchievement construct-with-robots-achievement
- Prototype/DeconstructWithRobotsAchievement deconstruct-with-robots-achievement
- Prototype/DeliverByRobotsAchievement deliver-by-robots-achievement
- Prototype/DontBuildEntityAchievement dont-build-entity-achievement
- Prototype/DontCraftManuallyAchievement dont-craft-manually-achievement
- Prototype/DontUseEntityInEnergyProductionAchievement dont-use-entity-in-energy-production-achievement
- Prototype/FinishTheGameAchievement finish-the-game-achievement
- Prototype/GroupAttackAchievement group-attack-achievement
- Prototype/KillAchievement kill-achievement
- Prototype/PlayerDamagedAchievement player-damaged-achievement
- Prototype/ProduceAchievement produce-achievement
- Prototype/ProducePerHourAchievement produce-per-hour-achievement
- Prototype/ResearchAchievement research-achievement
- Prototype/TrainPathAchievement train-path-achievement
Mandatory properties
Inherits all properties from Prototype.
icons, icon, icon_size (IconSpecification)
Type: Types/IconSpecification
Optional properties
steam_stats_name
Type: Types/string
Default: ""
Unusable by mods, as this refers to unlocking the achievement through Steam.
allowed_without_fight
Type: Types/bool
Default: true
If this is set to false, ite is not possible to complete the achievement on the peaceful difficulty setting or when the enemy base generation settings have been changed.
Type: Types/bool
Default: false
Example
{
type = "achievement",
name = "so-long-and-thanks-for-all-the-fish",
order = "g[secret]-a[so-long-and-thanks-for-all-the-fish]",
icon = "__base__/graphics/achievement/so-long-and-thanks-for-all-the-fish.png",
icon_size = 128
}