Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. Dialog Group
  2. - Message Condition [Quest.rats] // This tag is generated automatically, so it can be collapsed and readable
  3. - Quest.rats.done Set
  4. - Message - string: That's a lot of blood. I'll assume you killed them. 10% off anything in the store.
  5. - [Barter -10%]
  6. - [set Quest.rats.completed]
  7. - [parent.remove]
  8. - Message Condition [met] // This tag is generated automatically, so it can be collapsed and readable
  9. - met Set
  10. - Message - string: Hello again.
  11. - Message Condition
  12. - Or
  13. - health Less Than 10
  14. - armor Less Than 5
  15. - Message - string: Hello traveler, you look worse for wear.
  16. - Else
  17. - Message - string: Hello traveler, what can I interst you in?
  18. - [set met]
  19. - Choice - string: Who are you?
  20. - Dialog Group
  21. - Message - string: I'm a retired shopkeeper, well unretired. This chaos is profitable.
  22. - Choice - string: Live here long?
  23. - Message - string: Over twenty years now. I built this shop with my own two hands.
  24. - Choice - string: Wow.
  25. - [parents(Choice)[1].remove]
  26. - Choice - string: Right. Well we should get back to business.
  27. - Choice - string: Have you heard anything questy lately?
  28. - Dialog Group
  29. - Message - string: Questy? An infestation of rat-like things is blocking my shed. I'll give you a discount if you kill them.
  30. - Choice - string: Should be easy.
  31. - Dialog Group
  32. - Message - string: That's what the last person said, but you look more equipped.
  33. - [World.gate1.lock = false]
  34. - [add Quest.rats]
  35. - Description - string: Rats
  36. - Objectives
  37. - [done] - string: Kill rats by shed.
  38. - [completed] - Return to shopkeeper.
  39. - await Promise.all(World.get(x, y).filter(entity => entity.name == 'rat').limit(5).map(rat => rat.death));
  40. - [set Quest.rats.done]
  41. - Choice - string: Maybe later.
  42. - Choice - string: The sign says you run a shop?
  43. - Dialog Group
  44. - Message - string: Yes, I buy and sell many things. What will it be?
  45. - Choice - string: Buy/Sell -> Trade Dialog
  46. - Choice - string: Maybe later.
  47. - Choice - string: Goodbye
  48. - Message Condition
  49. - Quest.rats.done Set
  50. - Message - string: Thanks again for those rats. Now that I think about it, I think that shed is empty.
  51. - [parent.remove]
  52. - Message - string: Hope to see you again.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement