ID:150764
 
I am wondering how I would add in custom keys.. like to fire you use 5 on the numpad, or space. Shift to jump, etc..
Also maybe someone could show me an example to let the players costumize their keys? Is this possible? The first question is all I really need, just curious to see if you can even do the second.. Thanx for any help.
On 7/30/01 7:31 pm Oblivian wrote:
I am wondering how I would add in custom keys.. like to fire you use 5 on the numpad, or space. Shift to jump, etc..
Also maybe someone could show me an example to let the players costumize their keys? Is this possible? The first question is all I really need, just curious to see if you can even do the second.. Thanx for any help.

http://www.byond.com/docs/ref/info.html#/client/var/script/ macro explains how to script macros. You can trap the 5 on the numpad by overiding the client .Center() verb. Shift can not be trapped in BYOND.

You should also be sure to include

client
command_text = ".alt"

if you want to automatically turn keypresses to macros, otherwise players must hold the Alt key down, or manually set macro mode by clicking the "Alt" button in the lower left of the DS window.

For players to set their own macros, they need to configure their preferences in Dream Seeker. go to the menu and select Options, then Preferences, and click on the Macros tab. Players can type any key they want to trap, and assign it to a verb or combination of verbs.

In response to Shadowdarke
On 7/30/01 7:48 pm Shadowdarke wrote:
On 7/30/01 7:31 pm Oblivian wrote:
I am wondering how I would add in custom keys.. like to fire you use 5 on the numpad, or space. Shift to jump, etc..
Also maybe someone could show me an example to let the players costumize their keys? Is this possible? The first question is all I really need, just curious to see if you can even do the second.. Thanx for any help.

http://www.byond.com/docs/ref/info.html#/client/var/script/ macro explains how to script macros. You can trap the 5 on the numpad by overiding the client .Center() verb. Shift can not be trapped in BYOND.

You should also be sure to include

client
command_text = ".alt"

if you want to automatically turn keypresses to macros, otherwise players must hold the Alt key down, or manually set macro mode by clicking the "Alt" button in the lower left of the DS window.

For players to set their own macros, they need to configure their preferences in Dream Seeker. go to the menu and select Options, then Preferences, and click on the Macros tab. Players can type any key they want to trap, and assign it to a verb or combination of verbs.
ok cool, thanx