Quote Originally Posted by NeonGod
It was brought up a little while ago that scripting is even more limited in RTW than other programs because there is no "or" function. I can't even begin to imagine how much more coding must be done to cover all the options that a few "or" lines would easily accomplish.
Well, not precisely. "or"s do exist, they just can't be nested. So you can say "X or Y", "X or Y or Z", or "X and Y and Z" and probably have it work right, but "X or Y and Z" and "X or not Y and Z" are chancy. There are other absences that are really more important; chiefly, there are sharp limitations on what triggers, conditions, and commands are available to us, but there are other omissions glaring from the point of view of a proper scripting language.

First, probably most importantly, there are no proper variables―not ones that can take their input from a trigger event or have their contents used for a command, so basically only settable and checkable in conditionals, and even those only in the script file (no checking them in the building files, say). There are no nested conditionals, as mentioned. A lack of "for"s goes without saying. Plus, of course, there's the business of being unable to restart the script automatically upon game load.

All this means that the season-change script (for instance) is thousands upon thousands of lines, although that's more due to a lack of reasonable variables than anything. One trigger per turn in the game, I believe, from the first up to some arbitrary point or another. The building files, too, are staggeringly large to account for comparable limitations in those files' conditionals. Fortunately we haven't noticed any slowdown from any of this.

Anyway, the basic point is that the RTW scripting language was not intended to be used for anything beyond the prologue and "show me how" scripts. These purposes were by nature not particularly demanding, they didn't have to account for unpredictable conditions, and we have to live with that. A shame, really.
Quote Originally Posted by kayapó
I don't agree with everything that is said there . . .
Then edit it.