Show / Hide Table of Contents

Class ConditionsBuilderNewEx

Extension to ConditionsBuilder for conditions defined in BlueprintCore and not available in the base game.

Inheritance
System.Object
ConditionsBuilderNewEx
Namespace: BlueprintCore.Conditions.Builder.NewEx
Assembly: BlueprintCore.dll
Syntax
public static class ConditionsBuilderNewEx
Remarks

Conditions are supported using extension methods. Include the extension namespaces as needed.

When Build(Validator) is called the Kingmaker.ElementsSystem.ConditionsChecker is constructed, validated, and returned. If any errors are detected by Validator they will be logged as a warning.

Do not call Build(Validator) twice on the same builder.

If a method calls for a string to represent any type of blueprint, you can pass the blueprint's Kingmaker.Blueprints.SimpleBlueprint.AssetGuid as a string or as a name you already provided using AddGuidsByName().

AreaEx Conditions involving the game map, dungeons, or locations. See also KingdomEx for location related conditions specifically tied to the Kingdom and Crusade system.
BasicEx Most game mechanics related conditions not included in ContextEx.
ContextEx Most Kingmaker.UnitLogic.Mechanics.Conditions.ContextCondition types. Some Kingmaker.UnitLogic.Mechanics.Conditions.ContextCondition types are in more specific extensions such as KingdomEx.
KingdomEx Conditions involving the Kingdom and Crusade system.
MiscEx Conditions without a better extension container such as game difficulty.
NewEx Conditions defined in BlueprintCore and not available in the base game.
StoryEx Conditions related to the story such as companion stories, quests, name changes, and etudes.
Make a melee attack if the target is in range:
// Provides the MeleeAttack extension for ActionsBuilder
using BlueprintCore.Actions.Builder.ContextEx; 
// Provides the TargetInMeleeRange extension for ConditionsBuilder
using BlueprintCore.Conditions.Builder.NewEx;

var actionList = ActionsBuilder.New() .Conditional( ConditionsBuilder.New().TargetInMeleeRange(), ifTrue: ActionsBuilder.New().MeleeAttack()) .build();

Methods

| Improve this Doc View Source

HasActionsAvailable(ConditionsBuilder, Boolean, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)

Adds HasActionsAvailable(ConditionsBuilder, Boolean, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)

Declaration
public static ConditionsBuilder HasActionsAvailable(this ConditionsBuilder builder, bool negate = false, bool? requireFullRound = null, bool? requireMove = null, bool? requireStandard = null, bool? requireSwift = null)
Parameters
Type Name Description
ConditionsBuilder builder
System.Boolean negate
System.Nullable<System.Boolean> requireFullRound
System.Nullable<System.Boolean> requireMove
System.Nullable<System.Boolean> requireStandard
System.Nullable<System.Boolean> requireSwift
Returns
Type Description
ConditionsBuilder
| Improve this Doc View Source

TargetInMeleeRange(ConditionsBuilder, Boolean)

Adds TargetInMeleeRange(ConditionsBuilder, Boolean)

Declaration
public static ConditionsBuilder TargetInMeleeRange(this ConditionsBuilder builder, bool negate = false)
Parameters
Type Name Description
ConditionsBuilder builder
System.Boolean negate
Returns
Type Description
ConditionsBuilder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX