Condtional branching custom controls?

Started by Moogleking, January 05, 2009, 07:12:38 am

Previous topic - Next topic

Moogleking

Can anyone help me with this?

I'm using Tons of Addons and need to be able to conditional branch some keys, how do I do this for the custom controls?

Fantasist

Use the Script tab in the conditional branch event command. Then, in the condition, type something like this:

Input.trigger?(Input::Keys['W'])
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Moogleking

January 15, 2009, 12:48:48 pm #2 Last Edit: January 15, 2009, 12:53:38 pm by Moogleking
I get an error with that-

"NameError occurred while running the script.

unitialized constant Input::Keys"

Fantasist

oops, sorry, I was in the Blizz-ABS swing ^_^'

Try this:
Input.trigger?(Input::KEY_CONSTANT)

where KEY_CONSTANT can be any RMXP key. The available keys are:

DOWN LEFT RIGHT UP: The directions

A B C X Y Z L R: C is basically the confirm key and B is the cancel key. A is the shift key.

SHIFT CTRL ALT

F5 F6 F7 F8 F9

Press F1 while running a game and you can check what keyboard keys are mapped to these controls.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Blizzard

And it should be "Key", not "Keys" in case of Blizz-ABS.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.