dreamland-mud / mudjs

WebSocket MUD client for DreamLand
https://dreamland.rocks/mudjs/
GNU General Public License v3.0
16 stars 8 forks source link

Commands: #var built-in #69

Closed ruffinakoza closed 3 years ago

ruffinakoza commented 3 years ago

Add new command that allows users to define their own custom variables.

Variable creation

Syntax:

Variable name can contain EN or RU characters, underscores and numbers. Let's restrict first character to be a letter, to avoid confusion with $1, $2, should we need them in the future.

Vars are kept in local storage, as usual.

Variable evaluation

#hotkey f2 blackjack $victim
#var victim Zauber
...
#hotkey f3 take $food backpack|eat $food
#var food pie