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 questadd the parameters requested by the action. - 3 - Use the
Check if all objects are collectedaction 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.
TitletypeofStringDescriptiontypeofStringStatus(Active, Inactive, Completed, Failed) typeofStringCanAbandontypeofBooleanTrue|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
Numberreturns the value of objects to collect. - QuestsCreator::Collected(Variable(QuestID)) Return
NumberReturns the total value of objects collected. - QuestsCreator::Collect(Variable(QuestID)) Return increments the +1 value of collected.
Ìnit Quests CreatorStarts the Quests Creator engine and sets the scene variableQuestsCreatorSave- Save all data to theQuestsCreatorscene variableLoadAll- Load all data from theStorageinto theQuestsCreatorscene 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 calledQuestand 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 theTitleof the quest.Update quest title- Updates theDescriptionof the quest.Update quest title- Updates theStatusof the quest.Update quest can be abandoned- UpdatesCanAbandonof the quest.(Collect) Add 1 collectable- Add 1 to the objects to collect in theCollectedvariable
Quest exists- Checks if a quest exists given itsID(Collect) Is quest completed?- Checks if theStatusof the quest is equal toCompleted.