Help with enablekey/disable key

Post Reply
newbie
Posts: 18
Joined: Thu Jan 26, 2012 10:56 am

Help with enablekey/disable key

Post by newbie »

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.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Help with enablekey/disable key

Post by Vadi »

Try disablekey("keymap_tree") and so on.

newbie
Posts: 18
Joined: Thu Jan 26, 2012 10:56 am

Re: Help with enablekey/disable key

Post by newbie »

Vadi wrote:
Fri May 13, 2022 10:49 am
Try disablekey("keymap_tree") and so on.
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
alias.png (26.23 KiB) Viewed 5823 times
keys.png
keys.png (20.08 KiB) Viewed 5823 times

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Help with enablekey/disable key

Post by Vadi »

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.

newbie
Posts: 18
Joined: Thu Jan 26, 2012 10:56 am

Re: Help with enablekey/disable key

Post by newbie »

Vadi wrote:
Sat May 14, 2022 7:32 am
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.
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?

newbie
Posts: 18
Joined: Thu Jan 26, 2012 10:56 am

Re: Help with enablekey/disable key

Post by newbie »

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

Post Reply