Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dialog Group
- - Message Condition [Quest.rats] // This tag is generated automatically, so it can be collapsed and readable
- - Quest.rats.done Set
- - Message - string: That's a lot of blood. I'll assume you killed them. 10% off anything in the store.
- - [Barter -10%]
- - [set Quest.rats.completed]
- - [parent.remove]
- - Message Condition [met] // This tag is generated automatically, so it can be collapsed and readable
- - met Set
- - Message - string: Hello again.
- - Message Condition
- - Or
- - health Less Than 10
- - armor Less Than 5
- - Message - string: Hello traveler, you look worse for wear.
- - Else
- - Message - string: Hello traveler, what can I interst you in?
- - [set met]
- - Choice - string: Who are you?
- - Dialog Group
- - Message - string: I'm a retired shopkeeper, well unretired. This chaos is profitable.
- - Choice - string: Live here long?
- - Message - string: Over twenty years now. I built this shop with my own two hands.
- - Choice - string: Wow.
- - [parents(Choice)[1].remove]
- - Choice - string: Right. Well we should get back to business.
- - Choice - string: Have you heard anything questy lately?
- - Dialog Group
- - Message - string: Questy? An infestation of rat-like things is blocking my shed. I'll give you a discount if you kill them.
- - Choice - string: Should be easy.
- - Dialog Group
- - Message - string: That's what the last person said, but you look more equipped.
- - [World.gate1.lock = false]
- - [add Quest.rats]
- - Description - string: Rats
- - Objectives
- - [done] - string: Kill rats by shed.
- - [completed] - Return to shopkeeper.
- - await Promise.all(World.get(x, y).filter(entity => entity.name == 'rat').limit(5).map(rat => rat.death));
- - [set Quest.rats.done]
- - Choice - string: Maybe later.
- - Choice - string: The sign says you run a shop?
- - Dialog Group
- - Message - string: Yes, I buy and sell many things. What will it be?
- - Choice - string: Buy/Sell -> Trade Dialog
- - Choice - string: Maybe later.
- - Choice - string: Goodbye
- - Message Condition
- - Quest.rats.done Set
- - Message - string: Thanks again for those rats. Now that I think about it, I think that shed is empty.
- - [parent.remove]
- - Message - string: Hope to see you again.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement