Skip to content

HasCurrencyCondition ​

Inherits: EntityCondition < Condition < Resource

Check if the entity holds an amount of a currency (money, or anything a game counts as a currency: a quest track, a token)

Properties ​

intcurrency_id0
intrequired_amount1
boolat_least_amounttrue

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
Stringget_entity_function_description()

Property descriptions ​

Currency Checks

int currency_id = 0 ​

The currency to check

int required_amount = 1 ​

How much of it the entity must hold

bool at_least_amount = true ​

At least that much (true) or exactly that much (false)

Method descriptions ​

bool evaluate_entity( entity: Entity ) ​

Is the condition met for this entity?

String get_entity_description() ​

A short text about what the condition checks on the entity.

String get_entity_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.