Skip to content

Commit

Permalink
okay it should work now? ill have to update the other two
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashScreen committed Jul 12, 2023
1 parent 1d3bda6 commit 78225da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/journalgd/QuestNode/quest_engine.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ extends Node
## When functions ask for a "Quest path", they are referring to a string in the format of [code]quest_name/step_name/goal_name[/code].


static var instance:QuestEngine

## Array of IDs of all the quests that are currently active.
var active_quests: Array[String]
## Array of IDs of all the quests the player has completed.
Expand All @@ -23,6 +25,10 @@ signal step_updated(quest_path:String, data:Dictionary)
signal quest_updated(quest_path:String, data:Dictionary)


func _ready() -> void:
instance = self


## Loads all quests from the [code]biznasty/quests_directory[/code] project setting, and then instantiates them as child [QuestObject]s.
func load_quest_objects():
_load_dir(ProjectSettings.get_setting("journalgd/quests_path"))
Expand Down

0 comments on commit 78225da

Please sign in to comment.