New to Mudlet - Simple targetting script?
New to Mudlet - Simple targetting script?
Hey there. I'm very new to Mudlet and Lua, and am having trouble doing just a simple targetting script. I was wondering if someone could help? Thanks.
Re: New to Mudlet - Simple targetting script?
Sure. Have you watched the aliases screencast? a targetting alias is setup there. If it still doesn't work, post screenshots of what you did.
Re: New to Mudlet - Simple targetting script?
While I encourage you to watch Vadi's video, something easy to reference for all future people:
ALIAS:
Name: Targetting Alias
Pattern: ^tar (\w+)$
Script: target = matches[2]
KEYBINDING:
Name: Attack
Key: Pick one, you have a keyboard full of 'em!
Script: Wherever your attack calls for a target, put in the variable "target". For instance, if you wanted to perform a Hunting Kata in Lusternia, you would have the script be "kata perform " ..target.. " hunting". Notice the quotations after "perform" and before "hunting", there's a space. If you didn't put in that space, it would come out looking like "kata performtargethunting", instead of "kata perform target hunting".
Hope that helps!
ALIAS:
Name: Targetting Alias
Pattern: ^tar (\w+)$
Script: target = matches[2]
KEYBINDING:
Name: Attack
Key: Pick one, you have a keyboard full of 'em!
Script: Wherever your attack calls for a target, put in the variable "target". For instance, if you wanted to perform a Hunting Kata in Lusternia, you would have the script be "kata perform " ..target.. " hunting". Notice the quotations after "perform" and before "hunting", there's a space. If you didn't put in that space, it would come out looking like "kata performtargethunting", instead of "kata perform target hunting".
Hope that helps!