Announcement

Collapse
No announcement yet.

XP2 Editor idea: Script for prerequisite conditions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
    Last edited by The Rusty Gamer; May 18, 2003, 04:38.
    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.

  • #2
    Good idea.

    Of course there is the question.

    Will AI handle this well?

    For example, Tanks need Factory.
    Will AI build Factories more often, or they would still build Infantry in order to increse their military power.

    Comment

    Working...
    X