Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This is awesome and I'm so thankful, that you have given us this amazing tool! I have one question, that is probably, already answered, but im just not finding it. 


How can I activate events, depending on the status of a Quest? 
Example: If quest with Id "007" is unlocked jump to this label, elif quest with id "008" is unlocked jump to... and so on.

So basically what would be the code for having jumps depending on the Quests? 

Probably a simple If script line, but I rather ask an expert like you, before I do something wrong.

Thank you <3

Hi thank for your nice comment !
You can easily activate events depending on the status with the quest.is_state() function. This is an example: 


# Define the chapter
define test = (
Quest("test01", _("Test01"), _("Introduction"), "completed"),
Quest("test02", _("Test02"), _("Introduction"), "in progress"),

)

label start:

#Load the chapter into the game
$ quest.load(test)

#Add the conditional state
if quest.is_state("test01", " completed"):
jump choice01
else:
jump choice02

label choice01:
c "First"

label choice02:
c "Two"

Thank you so much. I understood this. I'm amazed by myself. :3 Thank you. This explanation was clear and straight to the point. Thank you so much :)