Hi, I have a different folders on keybidding with different options to each key, if we have ship, horse, shadow, tree and I set an alias with a disable all key folders and enable the one I want to use:
I will paste the different things:
Alias
^set keyXP
disablekey(keymap_tree)
disablekey(keymap_normal)
disablekey(keymap_horse)
disablekey(keymap_ship)
disablekey(keymap_sigil)
disablekey(keymap_water)
enablekey(keymap_XP)
The other alias, are the same, disable all and enable at the end the one I want
Keybidding
Can someonte tell me what I'm doing wrong because, when I change the "set key***" my keypad not works fine, I have to go manually and active the folder I want to choose.
Help with enablekey/disable key
Re: Help with enablekey/disable key
Try disablekey("keymap_tree") and so on.
Re: Help with enablekey/disable key
Well I write before wrong the alias, I have the lines as you post with " " before and after but as I say:
cecho("<red>Numpad_normal")
disableKey("Numpad_sigil")
disableKey("Numpad_tree")
disableKey("Numpad_water")
disableKey("Numpad_horse")
disableKey("Numpad_ship")
disableKey("Numpad_XP")
enablekey("Numpad_normal")
With your message means that the enable one, I have to disable before? and after on?
- Attachments
-
- alias.png (26.23 KiB) Viewed 6800 times
-
- keys.png (20.08 KiB) Viewed 6800 times
Re: Help with enablekey/disable key
That looks good to me. Does it work as expected?
The lock icons in the editor won't refresh right away when you enable/disable things so Mudlet can stay fast, but the changes will take effect immediately.
The lock icons in the editor won't refresh right away when you enable/disable things so Mudlet can stay fast, but the changes will take effect immediately.
Re: Help with enablekey/disable key
No, it not work as I expected:
when i wrote:
set_keynormal
I can see the cecho message but my numbers not work as I expected, normally it didn't anymore and only write numbers and I have to go the the folder and lock manually it.
Any idea Vadi?
Re: Help with enablekey/disable key
Ok the problem will be with the enablekey the correct word is enableKey with K and not with k
Now I have another questions with buttons and variables:
I create a button with a list of options, the name of the button can change when I select one of the option list?
It's possible create a disableKey("#variable")
An that that #variable will be a folder of keybidding, then I only have to disable the active folder of keybidding and active the desired one.
Thank you a lot
Now I have another questions with buttons and variables:
I create a button with a list of options, the name of the button can change when I select one of the option list?
It's possible create a disableKey("#variable")
An that that #variable will be a folder of keybidding, then I only have to disable the active folder of keybidding and active the desired one.
Thank you a lot