Okay, I've finished. I'm posting a screenshot of the code and a patch (it replaces Gato with that famous sphinx riddler from Greece...).
Some notes also:
- SpecialDlg NameEpoch is bugged in TF! Apparently, the command was not considered when TF was made, so you can't create one with the menu (there's NameMagus, then nothing after). If you click on the existent one in Keeper's Dome, there's an error message. The only way to create one is with an hex editor (I compared NameAyla and NameMagus and just added 1 to the number to make a NameEpoch).
- I've picked mem 7F0202, 7F0204, and 7F0206 randomly, I don't know if they are used for something else in the game or not. These 3 mems can be changed to anything anyway.
- In my example, the answer is "Man" (how cliché that riddle is). In the If commands it must be put in hex form, so the order is a bit strange...
BA AC -> a M
00 C7 -> (void) n
00 -> (void)
... to translate a normal letter to a hex value, just open the Strings menu and compare the item names with their hex codes. Or maybe I can create a translation page in the Flux wiki later to make it quicker.
- My example is just one, it can be customized at will (like, with a more interesting riddle...). Making more than one possible answer would be useful for instance (like Man, MAN, man, etc., or totally different words depending on the riddle). Finally, the code can be used more than once for different riddles in different places (thanks to the MemCopy which clear the {Epoch} variable).
The stuff remaining to do is to change the Epoch portrait (with a question mark picture or something like that)... I'll look into it, though I think it's not stored near the other portraits.
---
EDIT: Well the portrait is here but it's sort of messed up, I don't know how to make it appear normal to modify it.
3FEB88 3FF007 GFX No No Epoch portrait (naming screen) 5/1/2003
[attachment deleted by admin]