The only place find-in-files will fall short is when a function you're looking for is defined in the C++ code. Functions on the objects TheSim, TheNet, TheWorld.minimap.MiniMap, AnimState, and a few others are defined in the C++ code. As modders, we can't really modify these, and all we have to go on in terms of how to use them is how they're used in the rest of the Lua code. PeterA and MarkL have said they're working on an API for these objects, so hopefully they will become demystified a bit soon.