Corrodias
Generally Awesome
Even if it isn't possible to determine the current world state, it's easy enough to extrapolate what it's "supposed to be", according to their mission progress and choices. I think the function you wrote already does that, basically. You'd just have to figure out what mission they're up to (a bunch of ifs with cellmission_is_complete or whatever it is) and call the magic function with the next mission. Maybe with a new case for the "end" state.
The problem is putting any of this into an optional or menu-driven system, like you mentioned. The damn cell phone interface has a separate Lua environment, as you're aware, so we can't pass any global variables around or actually DO much with it. The crib menus seem to have the same situation going on.
edit: Scratch that first paragraph. I don't even have a function for you that tells you whether a mission is complete outside of the cell phone environment.
The problem is putting any of this into an optional or menu-driven system, like you mentioned. The damn cell phone interface has a separate Lua environment, as you're aware, so we can't pass any global variables around or actually DO much with it. The crib menus seem to have the same situation going on.
edit: Scratch that first paragraph. I don't even have a function for you that tells you whether a mission is complete outside of the cell phone environment.