Thread Tools
Old May 18, 2003, 04:25   #1
The Rusty Gamer
Prince
 
The Rusty Gamer's Avatar
 
Local Time: 13:51
Local Date: November 2, 2010
Join Date: Apr 1999
Location: Christchurch, New Zealand
Posts: 952
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.
The Rusty Gamer is offline  
Old May 18, 2003, 12:20   #2
player1
Emperor
 
player1's Avatar
 
Local Time: 03:51
Local Date: November 2, 2010
Join Date: Sep 2001
Location: Belgrade, Serbia
Posts: 3,218
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.
player1 is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 21:51.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team