Accelerators in MUSH

by Ashteru

Back to Mechanic's Corner.

Ashteru2008-12-15 21:23:31
Okay, so I am trying out this new client and I read through a lot of documentation and all. You can do a lot in MUSH itself, but if you look at the documentation, it keeps mentioning functions that you need to call in scripts. So now, where are those scripts? If I put, for example, this into my starting file in Mush, the one that's called in the External Script File thing:

Accelerator ("Ctrl+NumPad1", "blah")
Accelerator ("Ctrl+NumPad2", "blah")
Accelerator ("Ctrl+NumPad3", "blah")

I don't get an error, but it doesn't work either. :<
Unknown2008-12-15 21:31:16
It might be case-sensitive. Try "Ctrl+Numpad1" instead. For example, I've got this in my main Lua script file and it works well.

CODE
-- Setup macros for squinting
Accelerator("Ctrl+Subtract", "sq u")
Accelerator("Ctrl+Add", "sq d")
Accelerator("Ctrl+Decimal", "sq out")
Accelerator("Ctrl+Numpad0", "sq in")
Accelerator("Ctrl+Numpad1", "sq sw")
Accelerator("Ctrl+Numpad2", "sq s")
Accelerator("Ctrl+Numpad3", "sq se")
Accelerator("Ctrl+Numpad4", "sq w")
Accelerator("Ctrl+Numpad6", "sq e")
Accelerator("Ctrl+Numpad7", "sq nw")
Accelerator("Ctrl+Numpad8", "sq n")
Accelerator("Ctrl+Numpad9", "sq ne")
Ashteru2008-12-15 21:37:23
Hm, thank you!
Ashteru2008-12-15 21:38:25
Yep, was case sensitive, thank you!