3 ms·
If the battle has numeric controls for blocking and other actions (assigned to 1,2,3...) the game would be more fun to try and optimize.
by Supermancho 5mo ago
If the battle has numeric controls for blocking and other actions (assigned to 1,2,3...) the game would be more fun to try and optimize.
- kingstnap 5mo agoExactly, clicking on the buttons is so slow. I want to be able to use keyboard keys.
- nottorp 5mo agoIt would be too easy for the geeky audience then :) That being said, I'm so plugging my proper gaming mouse (that's normally used on my gaming desktop as the elder gods intended) into my laptop to do battle as soon as i get home...
- hnfong 5mo agodocument.addEventListener('keydown', (event) => { // Map the keys '1', '2', '3' to array indices 0, 1, 2 const keyMap = { '1': 0, '2': 1, '3': 2 }; // Check if the pressed key is 1, 2, or 3 if (event.key in keyMap) { const targetIndex = keyMap[event.key]; // Dynamically fetch the buttons currently in the DOM const buttons = document.getElementsByClassName('block-button'); // Ensure the button exists at that index before clicking if (buttons[targetIndex]) { buttons[targetIndex].click(); } } });
- gruez 5mo agoThis works better if you change "block-button" to "attack-button", because you need to attack far more than block.
- timvdalen 5mo agoOnce you get past the first level you're never using the attack action
- gruez 5mo agoI don't get it, aren't you supposed to attack to get the enemy HP down? How else are you supposed to win?
- nosrepa 5mo agoA spoiler, but higher level numbers gain auto attack.
- wodenokoto 5mo agoYou need to change the numbers you bring into battle to have at least one star
- stavros 5mo agoThis script doesn't work for me, and mouse-based battle makes me want to throw the entire computer out the window.
- deleted 5mo ago[deleted]
- tsukurimashou 5mo agoits an endgame shop perk, costs 150 clovers "Adds keybindings to block" ;)