############################################################
#                          Dialog                          #
############################################################
dialog(0)
   npc_begin
      text = gettext("Hello stranger!")
   npc_end
   pc_begin
      option
         pre_test = mission_active("missions/tutorial/hippie1.dsl")
         text = gettext("I need a chicken ration.")
         action = go_to_dialog(7)
      option 
         text = gettext("Where am I?")
         action = go_to_dialog(1)
      option
         text = gettext("Who are you?")
         action = go_to_dialog(2)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(1)
   npc_begin
      text = gettext("At the farm.")
   npc_end
   pc_begin
      option
         text = gettext("What is the farm?")
         action = go_to_dialog(3)
      option
         text = gettext("The farm?")
         action = go_to_dialog(4)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(2)
   npc_begin
      text = gettext("I'm a simple farmer.")
   npc_end
   pc_begin
      option
         text = gettext("A simple farmer?")
         action = go_to_dialog(3)
      option
         text = gettext("But what's your name?")
         action = go_to_dialog(3)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(3)
   npc_begin
      text = gettext("Are you a piggy cop?")
   npc_end
   pc_begin
      option
         text = gettext("Yes.")
         action = go_to_dialog(5)
      option
         text = gettext("No.")
         action = go_to_dialog(6)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(4)
   npc_begin
      text = gettext("F-A-R-M, farm, the farm.")
   npc_end
   pc_begin
      option
         text = gettext("But what is a farm?")
         action = go_to_dialog(3)
      option
         text = gettext("I got it!")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(5)
   npc_begin
      text = gettext("Pig!")
   npc_end
   pc_begin
      option
         text = gettext("(Close dialog)")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(6)
   npc_begin
      text = gettext("Neither am I.")
   npc_end
   pc_begin
      option
         text = gettext("(Close dialog)")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(7)
   npc_begin
      text = gettext("Ch... ch.. chicken ration? What are you talking about?")
   npc_end
   pc_begin
      option
         text = gettext("The F.S.C. Hippie told me you have some.")
         action = dialog_init(8)
         action = go_to_dialog(8)
      option
         text = gettext("I'm a chicken ration enthusiast.")
         post_test = roll(BLUFF, 18)
         if_action = receive_item("models/objetos/itens/racao/racao.dcc")
         if_action = dialog_init(17)
         if_action = go_to_dialog(10)
         else_action = dialog_init(8)
         else_action = go_to_dialog(9)
      option
         text = gettext("Give me a ration. Or else!")
         post_test = roll(INTIMIDATE, 14)
         if_action = receive_item("models/objetos/itens/racao/racao.dcc")
         if_action = dialog_init(17)
         if_action = go_to_dialog(16)
         else_action = init_fight()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(8)
   npc_begin
      text = gettext("I won't sell anything more to that lazy hippie.")
   npc_end
   pc_begin
      option
         text = gettext("Maybe I can do something for you in return?")
         action = go_to_dialog(11)
      option
         text = gettext("Bye.")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(9)
   npc_begin
      text = gettext("Don't lie to me! It's for the hippie!")
   npc_end
   pc_begin
      option
         text = gettext("No.")
         action = go_to_dialog(8)
      option
         text = gettext("Yes.")
         action = go_to_dialog(8)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(10)
   npc_begin
      text = gettext("An enthusiast? You'll love it!")
   npc_end
   pc_begin
      option
         text = gettext("Sure.")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(11)
   npc_begin
      text = gettext("Uhm, there's something I'll want you to do for me later. But I also need two ingredients for the ration. First, a mushroom.")
   npc_end
   pc_begin
      option
         text = gettext("I'll get one.")
         action = dialog_init(12)
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(12)
   npc_begin
      text = gettext("Do you have a mushroom?")
   npc_end
   pc_begin
      option
         text = gettext("Not yet.")
         action = finish_dialog()
      option
         pre_test = have_item("models/natural/cogumelo/cogumelo.dcc")
         text = gettext("Here it is.")
         action = give_item("models/natural/cogumelo/cogumelo.dcc")
         action = dialog_init(14)
         action = go_to_dialog(13)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(13)
   npc_begin
      text = gettext("Great! Now I need an egg.")
   npc_end
   pc_begin
      option
         text = gettext("I'll get one.")
         action = dialog_init(14)
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(14)
   npc_begin
      text = gettext("Did you get an egg?")
   npc_end
   pc_begin
      option
         text = gettext("Not yet.")
         action = finish_dialog()
      option
         pre_test = have_item("models/natural/ovo/ovo.dcc")
         text = gettext("Here it is.")
         action = give_item("models/natural/ovo/ovo.dcc")
         action = receive_item("models/objetos/itens/racao/racao.dcc")
         action = dialog_init(17)
         action = go_to_dialog(15)
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(15)
   npc_begin
      text = gettext("Done! Come back later to pay off the debt.")
   npc_end
   pc_begin
      option
         text = gettext("Bye.")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                          Dialog                          #
############################################################
dialog(16)
   npc_begin
      text = gettext("What a world! Threats, threats and more threats...")
   npc_end
   pc_begin
      option
         text = gettext("Bye.")
         action = finish_dialog()
   pc_end
end_dialog
############################################################
#                         Dialog                           #
############################################################
dialog(17)
   npc_begin
      text = gettext("I have nothing else for you in this version of DNT. Come back when there is a new release or join DNTeam to help us develop it!")
   npc_end
   pc_begin
      option
         text = gettext("Bye.")
         action = finish_dialog()
   pc_end
end_dialog
