Skip to content

MovementStateCondition ​

Inherits: EntityCondition < Condition < Resource

Checks whether the entity is standing still, moving, in the air or on the ground. Use it for "heal 20 while not moving": a ticking Condition conditional effect (tick every second) with this condition and a heal as its child effect, or as a condition on a stat effect or a requirement. "Standing still" and "Moving" can ask for a minimum time.

Properties ​

StatestateState.STANDING_STILL
floatfor_at_least_seconds0.0

Methods ​

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

Enumerations ​

enum State ​

The options of state: standing still, moving, airborne, on ground.

  • STANDING_STILL = 0 - Not moving on the ground plane
  • MOVING = 1 - Moving on the ground plane
  • AIRBORNE = 2 - Not on the floor (jumping or falling)
  • ON_GROUND = 3 - On the floor

Property descriptions ​

Movement Check

State state = State.STANDING_STILL ​

Which state to check for: standing still, moving, in the air or on the ground

float for_at_least_seconds = 0.0 ​

Standing still / moving only: for at least this long (seconds). 0 = as soon as the state is true

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.