Toribash
Original Post
[Request] Change Two Hotkeys for Me – 5-10k TC REWARD
Before I begin, I'll let you know why I need this done. I want to play Toribash competitively (in tourneys, deuls, clan wars) but not having the ability to customize my hotkeys has influenced me to hang out on the side lines most of the time.

TB forces me to use Z and X. I have to put my left hand in an uncomfortable position to use these keys which lowers the quality of my play and keeps my head out of the game. I just want to enjoy playing TB. If you can make this script for me, I’d be willing to pay you 5-10k TC.

EDIT: This script might be hard to develop. So if you need to work together, I'll split the reward among you all.

DETAILS:
TASK #1: Change the Z (Extends/contracts the joint) hotkey to Q.

TASK #2: Change the X (Holds/relaxes the joint) hotkey to E.

That's all I ask.
Feel free to contact me if you need assistance.
Last edited by LesDuncan; Aug 28, 2013 at 03:20 AM.
Learning from the best.
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.
If a lua script doesn't work out, may I suggest AutoHotKey. With it, it's the easiest thing in the world to swap keys. I used it to remap my worn out WASD keys.

The script for your ZQXE would basically require no more than;

AHK scripting code:
z::q
q::z

x::e
e::x


But good luck.
Last edited by Daanando; Aug 28, 2013 at 11:06 AM.
Originally Posted by Daanando View Post
If a lua script doesn't work out, may I suggest AutoHotKey. With it, it's the easiest thing in the world to swap keys. I used it to remap my worn out WASD keys.

The script for your ZQXE would basically require no more than;

AHK scripting code:
z::q
q::z

x::e
e::x


But good luck.

This could be the fix to my problems. but i don't know where to put the script your showing me. Do i just put it here?
Learning from the best.
Originally Posted by T1G3R5H0T View Post
just make a new txt file and copy and paste the code into in then saveas a .ahk
then double click the file

now its running so just play the script will run in your taskbar

Thank you all so much for helping me out. The program worked and now i can play Toribash the way i want to.
Learning from the best.
Originally Posted by LesDuncan View Post
Thank you all so much for helping me out. The program worked and now i can play Toribash the way i want to.

T1G3R5H0T are I are happy to have helped. Now for the small matter of the reward. I believe our two posts met with your request ("Change Two Hotkeys for Me") quite well. I don't mind how the TC is divided between me and T1G.
Originally Posted by Daanando View Post
T1G3R5H0T are I are happy to have helped. Now for the small matter of the reward. I believe our two posts met with your request ("Change Two Hotkeys for Me") quite well. I don't mind how the TC is divided between me and T1G.

Thanks again, guys.

"You've sent 2500 toricredits to T1G3R5H0T"
"You've sent 2500 toricredits to Daanando"
Learning from the best.
Thank you.

And may I also say, congratulations with the news of the Toribash e-sport push. With your experience, well, you'll no doubt be prominent in just how Toribash will be experienced as an e-sport. Exciting times.