# Interface: NarrationQueriesInterface (/pixi-vn/index/interfaces/NarrationQueriesInterface)



Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L4)

## Properties [#properties]

### alreadyCurrentStepMadeChoices [#alreadycurrentstepmadechoices]

\> `readonly` **alreadyCurrentStepMadeChoices**: `number`\[] | `undefined`

Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L15)

Get the choices already made in the current step. **Attention**: if the choice step index is edited or the code of choice step is edited, the result will be wrong.

#### Returns [#returns]

The choices already made in the current step. If there are no choices, it will return undefined.

***

### isCurrentStepAlreadyOpened [#iscurrentstepalreadyopened]

\> `readonly` **isCurrentStepAlreadyOpened**: `boolean`

Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L20)

Check if the current step is already completed.

#### Returns [#returns-1]

True if the current step is already completed.

## Methods [#methods]

### isLabelAlreadyCompleted() [#islabelalreadycompleted]

\> **isLabelAlreadyCompleted**(`label`): `boolean`

Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L10)

Check if the label is already completed.

#### Parameters [#parameters]

##### label [#label]

`string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`>

The label to check.

#### Returns [#returns-2]

`boolean`

True if the label is already completed.

***

### timesChoiceMade() [#timeschoicemade]

\> **timesChoiceMade**(`index`): `number`

Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L32)

Get times a choice has been made in the current step.

#### Parameters [#parameters-1]

##### index [#index]

`number`

The index of the choice.

#### Returns [#returns-3]

`number`

The number of times the choice has been made.

***

### timesLabelOpened() [#timeslabelopened]

\> **timesLabelOpened**(`label`): `number`

Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationQueriesInterface.ts#L26)

Get times a label has been opened.

#### Parameters [#parameters-2]

##### label [#label-1]

`string`

The label to check.

#### Returns [#returns-4]

`number`

times a label has been opened.
