Issix-mod/IssixsPetQuest.gd

50 lines
2.1 KiB
GDScript3
Raw Normal View History

2024-10-29 01:07:34 +00:00
extends QuestBase
func _init():
id = "PierresPetQuest"
func getVisibleName():
return "Becoming something lesser"
func getProgress():
var quest_status = GM.main.getModuleFlag("PierreModule", "Quest_Status")
2024-11-01 00:34:49 +00:00
var quest_await = GM.main.getModuleFlag("PierreModule", "Quest_Wait_Another_Day", false)
2024-10-29 01:07:34 +00:00
var result = []
2024-10-30 21:25:47 +00:00
result.append("Pierre gave you a map and a task - to get him whatever is in a place marked on the map, and look for number 84. Apparently this trust exercise requires you to wear a blindfold, wonder why...")
2024-10-29 01:07:34 +00:00
if(quest_status > 1):
2024-10-30 21:25:47 +00:00
result.append("You've found the hidden closet. Now just to find what Pierre asked of you...")
if(quest_status > 2):
2024-10-31 00:36:55 +00:00
result.append("You've got a pack of gum. Return it to Pierre.")
2024-11-01 00:34:49 +00:00
if(quest_status > 4):
result.append("You've delivered a pack of gum to Pierre. His next request was of you to complete a ”test” of some sorts.")
if(quest_status == 3 and quest_await):
result.append("You've delivered a pack of gum to Pierre. He has asked you to wait until tomorrow when he will have next task for you")
if(quest_status == 3 and !quest_await):
result.append("You've delivered a pack of gum to Pierre. He should have a new task for you today.")
if(quest_status > 5):
pass
if(quest_status == 5 and quest_await):
result.append("You started the questionnaire, however your answering session was abruptly interrupted by medical emergency of Lamia. Pierre asked you to come other day.")
if(quest_status == 5 and !quest_await):
result.append("You started the questionnaire, however your answering session was abruptly interrupted by medical emergency of Lamia. Pierre asked you to come other day, at least a day has passed so you should check up with them.")
2024-10-29 01:07:34 +00:00
return result
func isVisible():
return GM.main.getModuleFlag("PierreModule", "Quest_Status") > 0
func isCompleted():
return GM.main.getModuleFlag("PierreModule", "Quest_Status") > 10
func isMainQuest():
return false
2024-10-30 21:25:47 +00:00
# quest_status - state (number)
# 0 - no quest/haven't started
# -1 - refused Pierres quest
# 1 - accepted Pierres quest
# 2 - arrived at closet
# 3 - looted the gumball
# 4 - gave the gumball to Pierre
2024-11-01 00:34:49 +00:00
# 5 -