vilmibm / tildemush

a modern mush tailored to tilde town
GNU General Public License v3.0
42 stars 12 forks source link

advanced command matching and targeting #166

Closed vilmibm closed 5 years ago

vilmibm commented 5 years ago

This issue covers changing how GameWorld dispatches actions.

Right now, given:

COMMAND pet horse

GameWorld notices that there are arguments to "pet" and tries to match "horse" to an object in scope. if it matches, that object receives the command (and other objects can also respond to the fact that the horse was pet).

In the new WITCH spec, commands can have arbitrary patterns:

(provides "rip page from $this"...

now when GameWorld sees a command with arguments, it needs to:

Ultimately, we want to support mentioning other things like "throw $this at $object" but that might end up in a followup issue...

vilmibm commented 5 years ago

just implemented $this case, not arbitrary matching