Does anyone know if I can key bind animation cancelling?

Isa730

Rancher
I'm not really planning on speedrunning or anything, but I'm curious if it's possible and if so, how I'd do it! It looks cool and I wanna learn.
 

Elenna101

Farmer
For the people reading this who are like "what the heck is animation cancelling": Basically, if you press the right key combination after a tool use, you'll cancel the animation of the tool. Since the actual action (the rock being hit or plant being watered or whatever) happens before the animation actually finishes, you can speed up your tools quite a bit this way. To see a demonstration, check out any speedrunning video in the Glitchless category, for example most videos on TheHaboo's YouTube channel.

Anyways, the answer to the question: Yep! You can use any keybinding software you like. As long as R, right shift, and delete, or whatever keys those are bound do, are pressed together during the animation, it'll be cancelled.
There are also YouTube tutorials on how to do this, I believe Waligug has a good one.

Here's an AutoHotKey script to rebind all three keys to spacebar (taken from the Stardew speedrunning discord):
SetTitleMatchMode, RegEx
#IfWinActive, i)^Stardew Valley$
Space::
SendInput {Del down}{RShift down}{r down}
KeyWait, space
SendInput {Del up}{RShift up}{r up}
return
#IfWinActive


Note that this script does not include left click, so to use a tool you have to click, then press spacebar to cancel. The timing of pressing spacebar needs to happen after the action happens (the rock being hit, etc) otherwise the tool just won't work, but obviously it's ideal to do it as early as possible otherwise. This timing does take practice. Here is a mod that can help visualize the ideal timing, or you can just figure it out through practice.
You could also add left click to the macro, so that when you left click it will pause briefly and then hit the three keys without doing anything else. This can certainly speed up your tool use but it won't be ideal, because the ideal timing changes based on what tool you're using and what direction you face. Such a macro would have to use the longest time needed for any tool/direction, which means it wouldn't be going as fast as possible on any other tool/direction. I don't have a script that will do this, unfortunately.
(Also, including left click, or any sort of timing, in your macro is not allowed in speedrunning - I know you said you don't want to speedrun but I figured I'd mention it. The script I gave above is allowed in speedrunning.)
 

Isa730

Rancher
Here's an AutoHotKey script to rebind all three keys to spacebar (taken from the Stardew speedrunning discord):
SetTitleMatchMode, RegEx
#IfWinActive, i)^Stardew Valley$
Space::
SendInput {Del down}{RShift down}{r down}
KeyWait, space
SendInput {Del up}{RShift up}{r up}
return
#IfWinActive
Holy crap, this is amazing!!!!! Thanks so much for your help, I'll try rebinding the three individually first and if I can do that I'll definitely try out this script! Thanks for that and all the extra tips, I'll make sure to keep everything in mind. :)
 

FilthyGorilla

Local Legend
Holy crap, this is amazing!!!!! Thanks so much for your help, I'll try rebinding the three individually first and if I can do that I'll definitely try out this script! Thanks for that and all the extra tips, I'll make sure to keep everything in mind. :)
Another method is using a third-party key-rebinder to rebind all different keys to one single one like the mouse side button.
Another useful thing with the script is that it only does anything when in stardew, so if you are making your own, make sure to include that.
 

noshme

Greenhorn
Another method is using a third-party key-rebinder to rebind all different keys to one single one like the mouse side button.
Another useful thing with the script is that it only does anything when in stardew, so if you are making your own, make sure to include that.
Hello! I'm sorry if this is a dumb question, but do you know what I would input in the script to bind the animation cancel into a side button?
 
Top