Created
June 10, 2020 21:34
-
-
Save jmdejong/e0373112c2136e9d7ae4f63a24e28feb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| speakers: [player, npc] | |
| dialog: | |
| - | |
| speaker: npc | |
| text: Hey there | |
| choice: | |
| "[Give dead rat]": trade | |
| "Hello": hello | |
| - | |
| label: hello | |
| speaker: player | |
| text: Hello | |
| - | |
| speaker: npc | |
| text: Could you help me out? | |
| choice: | |
| Yes: yes | |
| No: null | |
| - | |
| label: yes | |
| speaker: npc | |
| text: The rats are getting bolder every day, stealing our food and spreading diseases. | |
| - | |
| speaker: npc | |
| text: Can you kill them for me? | |
| action: | |
| fn: setVar | |
| name: john_canTrade | |
| value: true | |
| - | |
| speaker: npc | |
| text: I will pay 1 coin per rat if you give their bodies to me as a proof | |
| choice: | |
| "Allright, I'll hunt some rats": thanks | |
| "[Give dead rat]": trade | |
| No: null | |
| - | |
| label: trade | |
| condition: | |
| fn: and | |
| conditions: | |
| - | |
| fn: hasItem | |
| type: RatCorpse | |
| amount: | |
| - | |
| fn: canTake | |
| type: Coin | |
| - | |
| fn: varTrue | |
| name: john_canTrade | |
| actions: | |
| - | |
| fn: takeItem | |
| type: RatCorpse | |
| amount: | |
| - | |
| fn: giveItem | |
| type: Coin | |
| speaker: npc | |
| text: Thanks, did you kill any more? | |
| choice: | |
| "Yep [Give another dead rat]": trade | |
| No: null | |
| - | |
| label: thanks | |
| speaker: npc | |
| text: Thanks | |
| next: null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment