Undertale
Robin 3/set./2018 às 17:00
2
1
How to use custom controls in UNDERTALE
So, I've got myself a working script that'll let me rebind undertales controls to anything I want, and I figured I would share.

First, you'll need to install AutoHotkey. A link is provided here: AutoHotkey download page. [autohotkey.com]

Next, right click on your desktop/in a folder and select New > AutoHotkey Script. Once it's there, right click the file and select Edit Script (Though I have Notepad++ installed and select to Edit weith Notepad++, so that works too). After that, paste this code into it:

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #HotkeyInterval 1000 ; Prevent Script from bugging out when you press the keys too quickly in succession. Esc::ExitApp ; Exit script with Escape key ^!s::Suspend ; Suspend script with Ctrl+Alt+S w::Up s::Down a::Left d::Right LButton::z RButton::x MButton::c

The default Undertale controls are Arrow Keys, Z, X, & C. This script rebinds that to WASD, Left Click, Right Click, and Middle Click. It also shuts down the script when the Escape key is pressed, and suspends it when you press Ctrl + Alt + S. This is important if you want to use the mouse, as rebinding Undertale's controls to mouse buttons will disable you from using the mouse buttons normally unless you use the shortcut to suspend the script or press Esc to shut the script down. So you can activate the script, suspend it with the shortcut, open Undertale, and then reenable the script by using the shortcut again. It's a bit complicated, but you should get used to it fairly quickly.

You can rebind the controls to anything you want now. A full list of keys for AutoHotkey is found here: List Of Keys [autohotkey.com]

Keep the keys on the right the same, those are Undertale's default controls. Change the ones on the left to rebind the control that key corresponds to. Same applies to the ExitApp and Suspend hotkeys.

Lastly, you can change this script so that it will only be active if you have Undertale as the active window. you can do this by putting:

#IfWinActive UNDERTALE

Above #HotkeyInterval 1000. This makes working with the script much easier, as you don't constantly have to suspend and unsuspend the script when switching between windows and such, HOWEVER, it will make it impossible for you to use the mouse to control the game. Trust me, I tried. Undertale doesn't look for or receive any input from the mouse, so if the script is taking its inputs from what the game gets, it will never get any mouse buttons being triggered. You have to have the script receiving input from the desktop, or PC itself, or whereever. I'm no master of this stuff, I just know that if you make the script only active when you are actually playing Undertale, you can't rebind controls to youer mouse, while if you leave it as is and have the script always active and just resort to suspending and unsuspending the script to switch between windows, you can rebind to mouse controls.

So yeah, it's kinda complicatd to setup and get used to, but once you do, it's really nice to have your preffered controls.
Última edição por Robin; 3/set./2018 às 17:01
< >
Exibindo comentários 3140 de 40
sean_boi 2/dez./2023 às 12:28 
with the newer virsions 2.0 plus you dont need the top 2 parts of the script then it will work deleat everything above the #HotkeyInterval 1000
Lost Bird 25/jan./2024 às 4:55 
does this work on mac?
Bedside 7/fev./2024 às 1:52 
Escrito originalmente por Lost Bird:
does this work on mac?
use karabiner elements
shape 23/abr./2024 às 20:05 
i love downloading trojan agents!
Solan 22/mai./2024 às 15:15 
I did everything I could and it works in my browser and stuff but every script I've tried just doesn't work in UNDERTALE. Script "works" just not in undertale and I can't figure out why
SirDogeworth 7/jun./2024 às 22:21 
still doesnt work after trying everything!!! :/
Raimii 2/jul./2024 às 17:50 
THANK YOU SO MUCH !!!
Qwersu 10/out./2024 às 11:20 
♥♥♥♥♥♥ gówno zajeb sie
Nezuko-Chan 22/dez./2024 às 11:47 
or, you could, and im just spitballing here, use Fn W?
Silly 24 de mar. às 10:29 
doesn't work :p
< >
Exibindo comentários 3140 de 40
Por página: 1530 50