(Translated by https://www.hiragana.jp/)
Commands: #action built-in for triggers · Issue #76 · dreamland-mud/mudjs · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands: #action built-in for triggers #76

Open
ruffinakoza opened this issue Jun 25, 2021 · 0 comments
Open

Commands: #action built-in for triggers #76

ruffinakoza opened this issue Jun 25, 2021 · 0 comments

Comments

@ruffinakoza
Copy link
Member

Syntax:

  • #action -- list all defined triggers
  • #action {trigger} {action} -- execute action when 'trigger' string arrives from the server
  • #action string -- display all defined actions matching this string
  • #action string delete -- delete action matching this string

Trigger clause requirements:

  • triggers can use 'anchors': ^ to specify beginning of the line and $ to specify the end. For example: #action {^Nice white fountain is here} {drink fountain}
  • triggers can contain pattern-variables %0, %1, ... %10. Same variables can be used inside {action}, for example:
    #action {%0 gives you %5} {say thanks for the %5, %0!}

More details can be found in jmc docs and lyntin docs (see COMMANDS.ACTION section).

@ruffinakoza ruffinakoza added this to TODO in MUDJS feature parity via automation Jun 25, 2021
Targorn added a commit to Targorn/mudjs that referenced this issue Oct 14, 2021
fiorine added a commit that referenced this issue Oct 14, 2021
feat: add new builtin command 'action' #76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant