Talk:ConGrammar
I was about to ask about loops, but you went ahead and snuck in the edit...
Anyway, this is damn useful stuff. Thanks. :)
Are con files interpreted at map-loading or also at runtime? Is it possible to alter the behavior of a vehicle as a result of a certain world condition, for example: adding an extra mounted weapon (or change an existing one) to a JEEP_FAAV when a certain player(-class) enters the vehicle?
And if that is possible, how can you trigger certain events, like changing weapon properties when a player enters a vehicle?
--=Mad= 05:11, 14 Aug 2005 (MDT)
You know the long, long delay between playing one map and the next, when the progress bar slowly makes it way across the screen? That's when the con files are being loaded and interpreted by the game engine (among other things). The con files aren't even looked at at run time, so you can't change them and expect in-game changes--the changes won't take effect until the next time the map is fully loaded (you can't just restart the map, either--it has to actually be loaded again). As the con files are read, the game engine is building data structures in memory that describe the game world, objects in it, and their properties. Some of these structures are accessible from Python, others not. So, just because you can't get real time changes in the game by editing con files doesn't mean it can't be done--you may be able to use Python to edit the corresponding structures in memory. I'm not saying you can do this--I don't think anyone knows how, at this point, and it may turn out not to be possible; I'm just saying that if you want to alter game world objects at run time, that's the direction to look. --Woody 09:49, 14 Aug 2005 (MDT)
Problems with this article
I wrote this article, but it has come to my attention that my description of evaluable expressions is wrong. I will try to work out exactly what defines an expression and edit it in, if someone doesn't beat me to it.