Assets
Modding
Modding
  • Introduction
  • How to add new items
  • How to add new events
  • How to add new stashes
  • How to add new tutorial message
  • How to add weapon HUD image
  • How to add new weapon and ammo
  • How to edit traders
  • How to add language
  • How to add new quest
  • How to add PDA markers
  • How to change in-game SFX
  • How to add ambient sounds to level
  • How to add new dialogue
  • How to change player data
  • How to add new enemy
Powered by GitBook
On this page

How to add new quest

Files needed:

assets/gameplay/quests.json

Quest JSON structure:

quests.json
{
    "id": "quest_unique_ID",
    "title": "quest.language.key.name",
    "money": 0,
    "reward": [],
    "map_spot_id": null
}
Properties description
money = reward money that will be added to player after quest completed
reward = list of items IDs that will be added to player
map_spot_id = cut-off feature, always set to null

You can create new quest by adding new structure with unique ID to the quests file.

quests.json
{
  "id": "my_mod_quest",
  "title": "my.mod.quest.name",
  "money": 1500,
  "reward": ["medkit","medkit","antirad","ammo_ak"],
  "map_spot_id": null
}

Now you can add this quest in assets/scripts/p_game.gd file with GameManager:

GameManager.AddQuestJson("my_mod_quest")

And complete it with GameManager:

GameManager.CompleteQuest("my_mod_quest")

How it looks like in the game:

PreviousHow to add languageNextHow to add PDA markers

Last updated 5 months ago

Quest added to the journal
Quest completed and reward is received