Is there any way to disconnect the commands OOPS and O from UNDO? Stuff like this doesn’t work:
[code]Understand the command “oops” as something new.
After reading a command:
if the player’s command matches “oops”:
say “No thanks.” instead.[/code]
Also, I already tried using Erik Temple’s Undo Output Control, but it’s not compatible with my version of Inform. I’m using 1.64.0 on a Mac.
The easiest way (not tidy, but easy) is to replace “Vocabulary” in “Language.i6t” and change the three constants OOPS1__WD, OOPS2__WD, OOPS3__WD to some untypable I6 constant such as ‘,DUMMY’ . (With a comma inside single quotes.)
I don’t think I understood the original question. Or at least I don’t understand it in light of the response, which basically deactivates OOPS entirely, doesn’t it?
Right, I wanted to deactivate OOPS but keep UNDO. Actually the truth is that I wanted to deactivate the O shortcut for OOPS and I thought it would just be easier to deactivate OOPS too, but with zarf’s method I was able to edit that single O command. I ended up looking at the French Inform translation to see how they changed the underlying I6 code, and wound up putting this into my own game:
So now OOPS2__WD is not “o//” anymore. It’s plain “oops” like the rest. Apparently Inform needed the entire list to keep the Vocabulary section otherwise intact.
Ah, I see. Yeah, I wanted the exact same thing in Leadlight Gamma - to just lose ‘O’ as a shortcut for OOPS. I wanted to give O to OPEN. But I wanted ‘oo’, ‘oop’ and ‘oops’ to still be oops. So I edited that big vocab block, but with these:
Anyone want to take a whack at updating Undo Output Control? It seems like one of those things where you’d just have to copy and paste the relevant I6 from the current template codes and then make the same changes that the original extension does, but I’m not up for trying it right now.