Interface ICondition
Provides access to conditions (generally player state). You can check whether a player is in combat, mounted, etc.
Assembly: Dalamud.dll​
public interface ICondition : IDalamudService
Properties​
MaxEntries​
Gets the current max number of conditions.
int MaxEntries { get; }
Address​
Gets the condition array base pointer.
nint Address { get; }
this[int]​
Check the value of a specific condition/state flag.
bool this[int flag] { get; }
this[ConditionFlag]​
Check the value of a specific condition/state flag.
bool this[ConditionFlag flag] { get; }
Methods​
AsReadOnlySet()​
Convert the conditions array to a set of all set condition flags.
IReadOnlySet<ConditionFlag> AsReadOnlySet()
Returns​
System.Collections.Generic.IReadOnlySet<Dalamud.Game.ClientState.Conditions.ConditionFlag>: Returns a set.
Any()​
Check if any condition flags are set.
bool Any()
Returns​
System.Boolean: Whether any single flag is set.
Any(params IEnumerable<ConditionFlag>)​
Check if any provided condition flags are set.
bool Any(params IEnumerable<ConditionFlag> flags)
Returns​
System.Boolean: Whether any single provided flag is set.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<Dalamud.Game.ClientState.Conditions.ConditionFlag> | flags | The condition flags to check. |
AnyExcept(params IEnumerable<ConditionFlag>)​
Check that the specified condition flags are not present in the current conditions.
bool AnyExcept(params IEnumerable<ConditionFlag> except)
Returns​
System.Boolean: Returns false if any of the listed conditions are present, true otherwise.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<Dalamud.Game.ClientState.Conditions.ConditionFlag> | except | The array of flags to check. |
OnlyAny(params IEnumerable<ConditionFlag>)​
Check that only any of the condition flags specified are set.
bool OnlyAny(params IEnumerable<ConditionFlag> other)
Returns​
System.Boolean: Returns a bool.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<Dalamud.Game.ClientState.Conditions.ConditionFlag> | other | The array of flags to check. |
EqualTo(params IEnumerable<ConditionFlag>)​
Check that only the specified flags are set. Unlike Dalamud.Plugin.Services.ICondition.OnlyAny(System.Collections.Generic.IEnumerable<Dalamud.Game.ClientState.Conditions.ConditionFlag>), this method requires that all the
specified flags are set and no others are present.
bool EqualTo(params IEnumerable<ConditionFlag> other)
Returns​
System.Boolean: Returns a bool.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<Dalamud.Game.ClientState.Conditions.ConditionFlag> | other | The array of flags to check. |
Events​
ConditionChange​
Event that gets fired when a condition is set. Should only get fired for actual changes, so the previous value will always be !value.
event ICondition.ConditionChangeDelegate? ConditionChange