Skip to content

RequirementSkillTier ​

Inherits: Requirement < Resource

Needs a proficiency or a profession to be in a tier (Journeyman or higher), or to be at the cap of its tier (ready to be trained further).

Description ​

The lesson of the next tier uses "at the cap of the tier before": you cannot train Expert until Journeyman is full.

Properties ​

KindkindKind.PROFICIENCY
inttarget_id0
intmin_tier1
boolmust_be_at_capfalse

Methods ​

boolcheck( entity: Entity )
Stringget_failure_message( entity: Entity )
Stringget_summary()
Array[Dictionary]validate()

Enumerations ​

enum Kind ​

The options of kind: proficiency, profession.

  • PROFICIENCY = 0 - A proficiency (swords, lockpicking)
  • PROFESSION = 1 - A profession (a craft school: blacksmithing)

Property descriptions ​

Kind kind = Kind.PROFICIENCY ​

What is asked about

int target_id = 0 ​

The id of the proficiency, or of the craft school

int min_tier = 1 ​

The lowest tier: a number from 0 (0 = the first tier)

bool must_be_at_cap = false ​

The level also has to be at the cap of that tier: the character is ready for the next one

Method descriptions ​

bool check( entity: Entity ) ​

Does the entity meet the requirement?

String get_failure_message( entity: Entity ) ​

The reason shown when the entity does not meet the requirement.

String get_summary() ​

A short text about the requirement and its settings.

Array[Dictionary] validate() ​

Checks the settings of the requirement. Gives the problems found (empty when it is fine).