Quests Creator Extension for GDevelop 5 Create quests easily With Quests Creator, you can easily create quests for your game. For example collect 3 coins, or kill 3 zombies.
- 1 - Start Quests Creator with the function
Init Quests Creator
"At the begin of the scene" - 2 - Create a quest with
(Collect) Create quest
add the parameters requested by the action. - 3 - Use the
Check if all objects are collected
action to keep the count of the object you want to collect up to date. You will have to create your own UI and assign the fields that you want to be visible in your scene.
Title
typeofString
Description
typeofString
Status
(Active, Inactive, Completed, Failed) typeofString
CanAbandon
typeofBoolean
True|False
** Tip: You will have to pass the quest ID parameter.
- QuestsCreator::Title(Variable(QuestID)) Return
String
- QuestsCreator::Description(Variable(QuestID)) Return
String
- QuestsCreator::Status(Variable(QuestID)) Return
String
- QuestsCreator::CanAbandon(Variable(QuestID)) Return
Boolean
- QuestsCreator::ToCollect(Variable(QuestID)) Return
Number
returns the value of objects to collect. - QuestsCreator::Collected(Variable(QuestID)) Return
Number
Returns the total value of objects collected. - QuestsCreator::Collect(Variable(QuestID)) Return increments the +1 value of collected.
Ìnit Quests Creator
Starts the Quests Creator engine and sets the scene variableQuestsCreator
Save
- Save all data to theQuestsCreator
scene variableLoadAll
- Load all data from theStorage
into theQuestsCreator
scene variable(Collect) Create a new quest
- Create a new quest.Find a quest by ID
- Find a quest by its ID, this action also creates a scene variable calledQuest
and saves the data of that quest in it. You can then access using Quest.ID or Quest["ID"] to get the values.Check if all objects are collected
- Constantly checks if the amount of objects collected is equal to the objects that have to be collected. In case if you set the quest toCompleted
.Update quest title
- Updates theTitle
of the quest.Update quest title
- Updates theDescription
of the quest.Update quest title
- Updates theStatus
of the quest.Update quest can be abandoned
- UpdatesCanAbandon
of the quest.(Collect) Add 1 collectable
- Add 1 to the objects to collect in theCollected
variable
Quest exists
- Checks if a quest exists given itsID
(Collect) Is quest completed?
- Checks if theStatus
of the quest is equal toCompleted
.