Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

ArgumentBindings should understand color tags and other punctuation #113

Open
scionaltera opened this issue Aug 15, 2018 · 0 comments
Open
Labels
enhancement New feature or request help wanted Good issue for contributors to look at

Comments

@scionaltera
Copy link
Owner

scionaltera commented Aug 15, 2018

If you put a color tag in an Actor name it makes it very hard to interact with that object. The command interpreter should be smart enough to ignore color tags so you can still interact despite all the colors.

Some permutations to consider:

[red]red balloon
red [red]balloon
[dred]red [red]balloon
colorful [red]b[dyellow]a[yellow]l[green]l[blue]o[dmagenta]o[cyan]n

Other punctuation, symbols and emoji should get filtered out as well since the command interpreter will filter them out of the input tokens. For your consideration:

> l
(0, 2) Armory
Weapon and armor racks line the walls, and a practice dummy stands forlornly in the
corner.
Exits: east south
"armor" is here.
 
> get arm
No "target in same room" found for word: ARM
 
> get "&quot
You get "armor".
@scionaltera scionaltera added enhancement New feature or request help wanted Good issue for contributors to look at labels Aug 15, 2018
@scionaltera scionaltera changed the title ArgumentBindings should understand color tags ArgumentBindings should understand color tags and other punctuation Sep 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Good issue for contributors to look at
Projects
None yet
Development

No branches or pull requests

1 participant