Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1. {
  2.                 Game1.currentLocation.createQuestionDialogue
  3.                     ("Donate 500g to enter the Festival of Trees?", new Response[]
  4.                     {
  5.                     new Response("yes", "Yes"),
  6.                     new Response("no", "No")
  7.                     },
  8.            (Farmer who, string answer) =>
  9.             {
  10.                 if (answer == "yes")
  11.                 {
  12.                     if (Game1.player.Money < 500)
  13.                     {
  14.                         Game1.drawObjectDialogue(Game1.content.LoadString("Strings\\Locations:BusStop_NotEnoughMoneyForTicket"));
  15.                     }
  16.                     else
  17.                     {
  18.                         Game1.player.Money -= 500;
  19.                         Game1.warpFarmer("TreeFestival", 1, 5, 0, true);
  20.                     }
  21.                     return true;
  22.                 }
  23.             }
  24.             );
  25.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement