Add a generic text-prompt system
Add a generic text-prompt system to the Game, and use it to prompt the character for their name on startup. There's also a Promise type in util, which is used for the result of the prompt.
This commit is contained in:
parent
68e8ad8a0e
commit
f22bcad817
11 changed files with 488 additions and 54 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[global]
|
||||
welcome = "Welcome to Xanthous! It's dangerous out there, why not stay inside?"
|
||||
welcome = "Welcome to Xanthous, {{character.name}}! It's dangerous out there, why not stay inside?"
|
||||
|
||||
[combat]
|
||||
attack = "You attack the {{creature.name}}."
|
||||
|
|
@ -10,5 +10,8 @@ killed = [
|
|||
"The {{creature.name}} beefs it."
|
||||
]
|
||||
|
||||
[character]
|
||||
name_prompt = "What's your name?"
|
||||
|
||||
[defaults.item]
|
||||
eat = "You eat the {{item.name}}"
|
||||
eat = "You eat the {{item.name}}. {{action.result}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue