# SQuests

## Index

### Functions Index

| Function Name                                                  |
| -------------------------------------------------------------- |
| void [**StartQuest** ](#startquest)(int id)                    |
| int [**GetQuestStep** ](#getqueststep)(int questID)            |
| void [**ResetQuest** ](#resetquest)(int id)                    |
| void [**SetQuestStep** ](#setqueststep)(int questID, int step) |
| void [**CompleteQuest** ](#completequest)(int questID)         |
| void [**AbortQuest** ](#abortquest)(int id)                    |
| void [**AwardAchievement** ](#awardachievement)(int id)        |
| bool [**HasAchievement** ](#hasachievement)(int id)            |

## Functions

### StartQuest

void **StartQuest** (int id)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.StartQuest(1001211)
```

{% endtab %}
{% endtabs %}

### GetQuestStep

int **GetQuestStep** (int questID)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
currentStep = Space.Quests.GetQuestStep(1001211)
```

{% endtab %}
{% endtabs %}

### ResetQuest

void **ResetQuest** (int id)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.ResetQuest(1001211)
```

{% endtab %}
{% endtabs %}

### SetQuestStep

void **SetQuestStep** (int questID, int step)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.SetQuestStep(1001211, 5)
```

{% endtab %}
{% endtabs %}

### CompleteQuest

void **CompleteQuest** (int questID)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.CompleteQuest(1001211)
```

{% endtab %}
{% endtabs %}

### AbortQuest

void **AbortQuest** (int id)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.AbortQuest(1001211)
```

{% endtab %}
{% endtabs %}

### AwardAchievement

void **AwardAchievement** (int id)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
Space.Quests.AwardAchievement(1001211)
```

{% endtab %}
{% endtabs %}

### HasAchievement

bool **HasAchievement** (int id)

*Function Description*

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

{% tabs %}
{% tab title="Lua" %}

```lua
hasAchievement = Space.Quests.AwardAchievement(1001211)
```

{% endtab %}
{% endtabs %}
