Included Scripts (Conditional) - BG3-Community-Library-Team/BG3-Community-Library GitHub Wiki
Conditionals
These functions return true or false depending on specific situations.
CL_ActiveWeaponHasStatus
Introduced: 2.0.4.2
Parameters: statusName: String representation of Status Name
Returns True if Active Weapon has Status
CL_AttackIsSpell
Introduced: 2.0.4.2
Parameters: None
Returns True if Attack Type is either a Melee Spell Attack or a Ranged Spell Attack.
CL_HasPactWeapon - Params: entity: Entity, mainHand
Introduced: 2.0.4.2
Parameters:
entity- Target object to checkmainHand- Boolean value for if weapon is in the mainhand or offhand slot.
Same as vanilla HasPactWeapon() function, only it uses CL_HasStatusFromArray by passing in an array of all PACT_BLADE statuses included in the library in addition to the vanilla version.