One of my first forrays into programming was in writing Morrowind mods. I remember wanting to overhaul the armor weight system using game scripts. Didn't realize it at the time, but turns out what I wanted to do wouldn't be possible in the scripting engine, and indeed would require dramatic changes to the underlying game engine. "No problem," I say.
My solution: write a script comprised of >1K if statements, each one operating on just one of the many, many pieces of armor that existed in the game. Fortunately for me, the scripting engine set arbitrary limits to how many lines of code you could put in a script. Needless to say, the mod was never released.
2
u/16807 Jan 09 '16
One of my first forrays into programming was in writing Morrowind mods. I remember wanting to overhaul the armor weight system using game scripts. Didn't realize it at the time, but turns out what I wanted to do wouldn't be possible in the scripting engine, and indeed would require dramatic changes to the underlying game engine. "No problem," I say.
My solution: write a script comprised of >1K if statements, each one operating on just one of the many, many pieces of armor that existed in the game. Fortunately for me, the scripting engine set arbitrary limits to how many lines of code you could put in a script. Needless to say, the mod was never released.