Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   disablekey? (https://forums.graalonline.com/forums/showthread.php?t=28125)

GrowlZP2P 04-27-2002 06:14 PM

disablekey?
 
Key remapping (or making one key do a different thing from usual) can be quite complicated in Graal, and then even once you can do it there's some keys that you can't disable, like the Pause button. So I propose introducing two new commands:

disablekey key; and enablekey key;

These two commands would remove or restore the default actions from a key. Not just the Graal action keys, other things like bringing up the map and pressing Tab to chat to people. It would use the same key values as keydown, so "disablekey 1;" would disable the Left key. These would also remove the need for extra commands like disableselectweapons; as all you'd need would be disablekey 9. It'd give more buttons to be used for things like musical instruments and minigames.

It also has practical applications in other fields; want to disable using NPC weapons in a spar, while leaving all other operations intact? disablekey 4. Want to stop people chatting idly in a jail? disablekey 8. How about stopping the player going up and down so they can just go left and right? This might be useful for a target range: disablekey 0 & disablekey 2.

I think this would be a useful addition to the language.

Kaimetsu 04-27-2002 06:40 PM

Re: disablekey?
 
Quote:

Originally posted by GrowlZP2P
I think this would be a useful addition to the language.
Quite easy to code, too, but not entirely necessary. Except for the pausing stuff, we can do it all already.

Spanko 04-27-2002 07:14 PM

Re: Re: disablekey?
 
Quote:

Originally posted by Kaimetsu


Quite easy to code, too, but not entirely necessary. Except for the pausing stuff, we can do it all already.

There's also the map. That can't normally be disabled either.

Kaimetsu 04-27-2002 07:28 PM

Re: Re: Re: disablekey?
 
Quote:

Originally posted by Spanko
There's also the map. That can't normally be disabled either.
Point. Scripted maps would be interesting.

Frolic_RC2 04-28-2002 12:09 AM

Re: Re: Re: Re: disablekey?
 
Quote:

Originally posted by Kaimetsu


Point. Scripted maps would be interesting.

I've already made one, I just have a def map saying "Press A+D to use map!" when they press M, and when they press A+D the scripted map comes into play...

Its more accurrate and by far nicer looking then the def map...I also made a mini map, both same NPC, both very small (about 10 lines total in NPC).

Kaimetsu 04-28-2002 08:38 AM

Of course, it won't have other players on, but that's no big deal. There's no real justification for showing other players on the map anyway.

Falcor 04-28-2002 10:38 AM

oh but there is kai!!! We need to know wher ethe staff is so we can bug the crap out of them!!!!

adam 04-29-2002 01:38 AM

Quote:

Originally posted by Falcor
oh but there is kai!!! We need to know wher ethe staff is so we can bug the crap out of them!!!!

It makes stalking players easy. haha.

Frolic_RC2 04-29-2002 09:01 PM

Quote:

Originally posted by Kaimetsu
Of course, it won't have other players on, but that's no big deal. There's no real justification for showing other players on the map anyway.
I'm sure you could implement that with NPC Server, but the whole point of my map is to get rid of that.

Kaimetsu 04-30-2002 09:01 AM

Quote:

Originally posted by Frolic_RC2


I'm sure you could implement that with NPC Server, but the whole point of my map is to get rid of that.

You could implement it, but it'd be very inefficient.

Falcor 04-30-2002 10:39 AM

checking allplayers[] x/y and onlevel position all the time would be very stupid.

You dont need to know where everyone is on the map. Just basically where you are on the map and maybe some important places :D


All times are GMT +2. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.