Key macros

mattgmr1
02 Oct 2020, 22:57

For my current game, I figured out a way to rapidly enter parser commands with a single keystroke. It requires programming macros with Javascript and overriding the commandKey function in the core files.

I did it because it's easier to use the arrow keys for things like N, S, E, W, (and number keys for commands like "Shoot Assassin 1") than to enter those commands.

Let me know if you're interested, and I'll figure out a way to share a tutorial!


Pertex
03 Oct 2020, 09:10

Something like this? http://textadventures.co.uk/forum/quest/topic/3847/how-can-i-impliment-an-image-based-health#25765


mattgmr1
03 Oct 2020, 10:29

Yes, it's similar in that it uses key codes.

I've put together a sample here: Click to download