-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quests: Fixes and improvements for the First Contact / Meet flow
- Adding 'Quickstart' quest to allow replay of the tutorial - Removing hint in First Contact -- Playtests have shown 2 lines at this point is excessive - Migrating to new aysnc future method for questions
- Loading branch information
Showing
3 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from eosclubhouse.libquest import Quest | ||
from eosclubhouse.system import Sound | ||
|
||
|
||
class Quickstart(Quest): | ||
|
||
__quest_name__ = 'Tutorial - The Clubhouse' | ||
__tags__ = ['mission:ada'] | ||
__mission_order__ = 10 | ||
|
||
def step_begin(self): | ||
self.wait_confirm('WELCOME1') | ||
|
||
def _choice(choice_var): | ||
return choice_var | ||
|
||
action = self.show_choices_message('WELCOME2', ('POSITIVE', _choice, True), | ||
('NEGATIVE', _choice, False)).wait() | ||
choice = action.future.result() | ||
|
||
if choice: | ||
for msgid in ['HACKSWITCH', 'PATHWAYS1', 'PATHWAYS2', 'PROFILE1', 'PROFILE2']: | ||
self.wait_confirm(msgid) | ||
|
||
self.wait_confirm('END1') | ||
self.show_message('END2', choices=[('Got it!', self.step_end)]) | ||
|
||
def step_end(self): | ||
self.complete = True | ||
self.available = False | ||
Sound.play('quests/quest-complete') | ||
self.stop() |