Originally Posted by box View Post
Here's a quickie.

lua code:

function key_down(key)
joint = get_world_state().selected_joint;
player = get_world_state().selected_player;

if (key == 113) then
if (get_joint_info(0, joint).state == 1) then
set_joint_state(player, joint, 2);
else
set_joint_state(player, joint, 1);
end
elseif (key == 101) then
if (get_joint_info(player, joint).state == 3) then
set_joint_state(player, joint, 4);
else
set_joint_state(player, joint, 3);
end
end
end

add_hook("key_down", "key_down", key_down)


Note, it does not update the ghost like Z and X (which I think is unfixable), and it will throw an error if you press the key while not hovering over a joint. Let me know if that causes a problem for you.

e: Seems to be a problem when using Q on Uke, although it works fine on Tori. Interesting.

Thank you for giving me hope that someone can make it work completely.

EDIT: Due to how i can't use your version of the script in competitive play, without putting myself at a disadvantage, I'm opening up this request to anyone who can make a working version of the script. No problems.

Just make Z change to Q and X change to E. If everyone comes to a conclusion that it's impossible. It'll be time for me to bug Hampa and ask him to make customizable hotkeys.
Last edited by LesDuncan; Aug 28, 2013 at 03:20 AM.
Learning from the best.