From 9dbb3e3233b674305287546914895cfe91e9357a Mon Sep 17 00:00:00 2001 From: AymericDu Date: Mon, 14 Mar 2016 12:22:36 +0100 Subject: [PATCH] Fix issue #178 --- data/plugins/location/tutorial-island/instructions.rb | 8 ++++++++ data/plugins/location/tutorial-island/survival.rb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/data/plugins/location/tutorial-island/instructions.rb b/data/plugins/location/tutorial-island/instructions.rb index 6e49994f..4fa4d639 100644 --- a/data/plugins/location/tutorial-island/instructions.rb +++ b/data/plugins/location/tutorial-island/instructions.rb @@ -73,6 +73,14 @@ module TutorialInstructions 'inventory. Your inventory is a list of everything you have in your backpack.' end + # The instruction displayed if the player tries to cut a tree before having the axe. + dialogue :try_cut_tree do + type :text + + title 'Follow the guide\'s instructions' + text 'You cannot cut down this tree, you must first follow the guide\'s instructions.' + end + # The instruction displayed before the player has begun to cut the tree. dialogue :cut_tree do type :text diff --git a/data/plugins/location/tutorial-island/survival.rb b/data/plugins/location/tutorial-island/survival.rb index 69011412..a5d47554 100644 --- a/data/plugins/location/tutorial-island/survival.rb +++ b/data/plugins/location/tutorial-island/survival.rb @@ -136,7 +136,7 @@ on :message, :first_object_action do |player, message| progress = player.tutorial_island_progress if progress < :cut_tree - # TODO: 'You cannot cut down this tree; you must first follow the guide's instructions.' + send_dialogue(player, get_dialogue(:tutorial_island_instructions, :try_cut_tree)) elsif player.tutorial_island_progress == :cut_tree # Don't break the chain, so that the Woodcutting event actually happens. player.tutorial_island_progress = :cutting_tree