diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-28T02·16-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-28T02·16-0400 |
commit | f22bcad817ee354b355d29b6b289894e2d15cfaa (patch) | |
tree | 509aa3b88f834ffaccd6a90b61ae2c1e1567622d /src/messages.toml | |
parent | 68e8ad8a0e6a5ac38b34658f03807ade603a687c (diff) |
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.
Diffstat (limited to 'src/messages.toml')
-rw-r--r-- | src/messages.toml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/messages.toml b/src/messages.toml index e7d097a76f61..c4a86beffff4 100644 --- a/src/messages.toml +++ b/src/messages.toml @@ -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}}" |