XP2 Editor idea: Script for prerequisite conditions
Instead of just having a specific prerequisite or two for buildings, units, techs etc that are specifically narrowly defined as techs or resources, why not have a memo field instead with a mini-script that contains the conditions for building the improvement, unit, etc.
You could include AND, OR, NOT, brackets etc.
So the prerequisite memo field might say something like:
built("Barracks")>=3 and thiscitybuilt("Barracks") and built("Granary")<10 and totalpoppoints>10 and thiscitypoppoints>4 and resource("bananas") and tech("monarchy") and NOT tech("democracy")
You get the idea. This mini-script could be used wherever there are prerequisites for anything, even techs! This could blow customization wide open!
So, shall we use this thread to try to define a mini-language and see what we can come up with?
__________________
Avoid COLONY RUSH on Galactic Civlizations II (both DL & DA) with my Slow Start Mod.
Finding Civ 4: Colonization too easy? Try my Ten Colonies challenge.
Last edited by The Rusty Gamer; May 18, 2003 at 04:38.
|