Thread Tools
Old April 12, 2001, 18:17   #1
Pythagoras
Alpha Centauri Democracy GameACDG Peace
King
 
Pythagoras's Avatar
 
Local Time: 19:51
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Charlottesville VA
Posts: 1,184
"Command Scripting" for auto-workers
Maybe this idea has been had by someone, and short of reading the 3 page topic on auto-workers I thought I might help resolve the problem/complaints many people have.

First off I love the concept that SMAC introduces whereby you can control your own level of control. You can micromanage every detail, or set your civ on autopilot if you wish. However I do think that the average person would rather have automation of workers/other things down to strictly defined/controlled tasks. So I believe that having a set of scripts you cant have your "subordinates" execute would make many people happy.

For example (assuming this is SMAC)
(this might req some programming knowledge)

Assume that the unit/governor whatever being executed upon is global, that for all intensive purposes (conceptually at least) what the script is introducing is a new method for the unit/governor object.

For instance if we are dealing with a unit, a unit might have such accesable, (mostly non modifyable) values/constants as HOMECITY, CURRLOC, ATTACKSTR, DEFENSESTR, HITPTS, FIREPOWER, maybe for specific units such as workers: TIMEREQ_TILLDONE, TIMEREQ_BUILDFARM, TIMEREQ_BUILDMINE and so on.

And each unit might have associated operations like: goTo( location ), moveEast(), Exec( script ), buildFarm(), buildMine()... etc.

so maybe a sample script might look like:
(and this of course is open ended and doesnt need to look like C++)

while (inHomeCityBorders()) { // Have a terraformer build a farm in each
buildFarm()
MoveNextCitySqr()
}

or something
Pythagoras 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 20: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