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 ​
int | currency_id | 0 |
int | required_amount | 1 |
bool | at_least_amount | true |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
String | get_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.