07. Conditions - dylogaming/Dialogue-Component GitHub Wiki

image

Description Image
Each player response includes a Player Conditions struct.

This struct defines conditions that must be met for the response to be valid.

In DC_Demo, the Shop NPC sells beer for 3 gold.

The condition checks if Gold ≥ 3, then subtracts and moves to Branch 3. If false, it moves to Branch 4.

In DC_Interrogation, the first response is grayed out.

The system checks for Evidence ≥ 1 and the Fail State is set to Deactivate.

Button Fail States:

Nothing: Fully interactable
Deactivate: Grayed out
Hide: Completely hidden

After changing the fail state to Hide, the first option disappears entirely.

⚠️ **GitHub.com Fallback** ⚠️