Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Moogleking on January 05, 2009, 07:12:38 am

Title: Condtional branching custom controls?
Post by: Moogleking on January 05, 2009, 07:12:38 am
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?
Title: Re: Condtional branching custom controls?
Post by: Fantasist on January 05, 2009, 07:22:25 am
Use the Script tab in the conditional branch event command. Then, in the condition, type something like this:

Input.trigger?(Input::Keys['W'])
Title: Re: Condtional branching custom controls?
Post by: Moogleking on January 15, 2009, 12:48:48 pm
I get an error with that-

"NameError occurred while running the script.

unitialized constant Input::Keys"
Title: Re: Condtional branching custom controls?
Post by: Fantasist on January 15, 2009, 01:45:47 pm
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.
Title: Re: Condtional branching custom controls?
Post by: Blizzard on January 15, 2009, 02:42:19 pm
And it should be "Key", not "Keys" in case of Blizz-ABS.