architext-game / architext

A multiplayer virtual reality text realm where you can build anything
MIT License
1 stars 0 forks source link

What makes Architext not ready for real random users? #177

Open OliverLSanz opened 10 months ago

OliverLSanz commented 10 months ago
OliverLSanz commented 10 months ago

About item visibility.

Option A: Listed items should not exist. Takable items are the only ones listed. Downside: Lazy builders may not like this.

Option B: Everything stays as it is.

I'm taking B.

OliverLSanz commented 10 months ago

About verbs

Remove apostrophes from verbs syntax

textto '' ─ sends the text to the selected user. takefrom '' ─ moves the item from the user's inventory to the room. give '' ─ moves the item from the room to the user's inventory tpuser '' ─ teleports the user to the selected room.

I will change it to: verb argument one - argument two

I could write a smart algorithm to handle most of the cases, but probably it will be future work:

string = "user name message to send"
n = 0

do:
  n = n + 1
  x = first n words of string
  y = rest of the string
  exact = user name whose name is x if there is one, otherwise retain the previous value of exact
  options = user names that start with the word x followed by a whitespace but have more text in them.
  if exact and not options:
    result = exact
  if not exact and not options:
    error, there is no user with that name
while not result

This would require: