# XWUIGamePersuasionCheck

A dialogue skill-check panel that compares the player's skill against a difficulty class and resolves a roll. It shows the `skillName` (e.g. Persuasion), a `Your Skill` (`playerSkill`) VS `DC` (`difficulty`) row, a `successChance` percentage (styled high at >=70% / low at <=30%), and either a Roll button or the animated SUCCESS/FAILED `result`. Calling `roll()` (or clicking Roll) rolls against `successChance` and dispatches a `check-result` event with the outcome and roll value. Toggle the `showChance` and `showSkillName` conf_comp flags to hide those rows. Use it for persuasion/intimidation/skill-check moments in conversation trees.

## Basic Usage

Instantiates the persuasion check in the `#app` element for a pending Persuasion roll, rendering the skill-vs-DC row, a 65% success chance, and a Roll button.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A pending Persuasion check with a 65% success chance and a Roll button.
```

## High Stakes Intimidation

A long-shot Intimidation check where the player is outmatched and the success chance is low.

```example
file: examples/HighStakesIntimidation.ts
html: examples/BasicUsage.html
title: High Stakes Intimidation
description: An Intimidation check with the player below the DC and a low-odds 25% success chance.
```

## Resolved Success

A Deception check already resolved as a success, showing the SUCCESS result instead of the Roll button.

```example
file: examples/ResolvedSuccess.ts
html: examples/BasicUsage.html
title: Resolved Success
description: A resolved Deception check displaying the SUCCESS result with a high 85% chance.
```

```api
```
