Anacreon Reconstructed 4021

Appendix A: Scenario Files

All scenarios in Anacreon are defined using a special format called a Scenario Description File (SDF) format. This format allows a player to create his or her own scenarios simply by editing a text file.

Header and Initial Text

All SDFs start with:

ANACREON Version
Name
Variation
Min/Max Plyrs
Size
Planets
Diff
Min/Max Len
First Year

Version: The version number of the game that this scenario is written for. This is expressed as a whole number: 12 for version 1.2, 21 for version 2.1, etc... The header ANACREON (which must appear in capital letters) and the version number must be on the first line of the file and must be alone.

Name: The name of the scenario. This may be more than one word, but it should not be more than 32 characters. If the name is more than one word, it should be enclosed in quotes.

Variation: Each scenario can be either random or set depending on the setting of this variable. If variation is 0, then all random elements in the scenario will change every time that the scenario is run. If variation is a positive number, then the scenario will be the same every time (as long as the number is the same.)

Min/Max Players: Two numbers (separated by a space) expressing the minimum and maximum number of players that can play this scenario. No more than 8 players may play a scenario.

Size: The size of the galaxy in sectors. The galaxy is always square, so this variable measures the length of one side. The galaxy should never be smaller than 21 sectors nor larger than 100. At 21 sectors, the map displays the entire galaxy.

Planets: The number of planets in this scenario. This number must match the actual number of planets created by CreateWorld and CreateRandomWorlds. No more than 200 planets may be in the galaxy.

Diff: The difficulty of the scenario:

0 Beginner
1 Intermediate
2 Advanced
3 Expert

This variable is only used to give the player an idea of how complicated the scenario is. The actual play of the game is not affected. The scenario designer should insure that the scenario is accurately labeled.

As a rough guideline, scenarios that are played in a small galaxy with few planets and without most of the advanced features of the game (i.e. gates, ambrosia) should be Beginner. Scenarios with some advanced concepts should be Intermediate. Scenarios that use a large map and/or most of the advanced features should be Advanced or Expert.

Min/Max Length: Two numbers (separated by a space) expressing the average length of one game in years. If the second number is 0, then it indicates an open-ended scenario. For instance: 10 20 would be 10-20 years. 50 0 would be 50+ years.

First Year: The year in which the scenario starts out. For example, most introductory scenarios start at 4021.

After the basic description, the file should contain the initial text description of the scenario. The text should begin with BEGINTEXT on its own line, and end with ENDTEXT, again on its own line. Page breaks are denoted by NEWPAGE.

Constants and Tables

Many commands require parameters such as tech levels or world class tables. The following charts specify the numbers that should be used and the order in which tables should be entered.

World Class Table

Symb Class Advantages Disadvantages
A Ambrosia Bio Met/Tri
a Arid (None) Chem/Agrc
0 Artificial Ships Chem/Met/Agrc/Tri
B Barren Met/Tri Chem/Agrc
j Class J Chem/Met Tri
k Class K Met Chem
l Class L Tri Chem
m Class M Agrc Trillum
D Desert Tri Chem/Met/Agrc
E Earth-Like (None) (None)
F Forest Chem/Agrc (None)
G Gas Giant Chem/Ships Met/Agrc/Tri
h Hostile (None) (None)
I Ice (None) Chem/Met/Agrc/Tri
J Jungle Chem/Agrc (None)
O Ocean Chem/Agrc Met/Tri
1 Paradise Bio/Chem/Met/Agrc/Tri (None)
P Poisonous Chem Met/Agrc/Tri
2 Ruins (None) (None)
U Underground Met/Tri Agrc
V Volcanic Chem/Met/Tri Agrc

Specifying Coordinates

There are four ways of specifying coordinates: absolute, random, zone-relative, and point-relative coordinates.

Absolute: Absolute coordinates start at 1,1 at the top-left corner of the map, and increase to the right in the x direction, and down in the y direction. Absolute coordinates are always specified as a string of two numbers separated by a comma. No spaces are allowed in the string.

Random: Another way of specifying a random location is to use the syntax R:x,y where x and y are ranges separated by double periods. For example, R:1..5,1..5 represents a random coordinate in the box from 1,1 to 5,5. R:1..5,10 is a random coordinate from 1,10 to 5,10.

Zone-Relative: If you need a random location, you can use zone-relative coordinates to pick a random spot inside a zone. The syntax is Z:n where n is the number of the zone. For example, Z:1 will return a random coordinate inside zone 1 (the entire galaxy). Again, no spaces are allowed in the syntax.

Point-Relative: The DefineXY command can be used to define a point in the galaxy and refer to it with an identifier. Once a point has been defined in this way, other coordinates can be specified as offsets from this point. The syntax is point:x,y where point is a defined point, and x,y is an offset. For example, if Center is a point previously defined, legal coordinates are: Center:0,0 and Center:-2,3. Random ranges are allowed in the offsets, thus Center:1..5,10 is a legal random coordinate.

Note: Since the DefineZone and DefineXY commands both take coordinates, it is very easy to combine the three types of coordinates to get interesting effects. For example, a point could be defined as a random coordinate within a zone, and other zones could be defined relative to it.

Comments

A semi-colon (;) is used as a comment delimeter. Everything from the semi-colon to the end of the line is ignored. Comments may be placed anywhere in the file except inside a BEGINTEXT, ENDTEXT block.

Commands

The actual commands to create the scenario follow the initial description. Each command is followed by any parameters required (see actual syntax). There is no expected format, as long as each of the parameters are listed in order.

The scenario file must end with the command EndScenario.

Below is a list of all legal commands.

ClassTable

c1 c2 c3 ...

ClassTable defines the current class distribution table for any subsequent CreateRandomWorlds commands. C1, c2, etc are integer values expressing the (percent) chance that a world will be of that class. (C1 is the value for ambrosia worlds, c2 is the value for arid worlds, and so on, following the order given in the tables.) E.g. if the value for a barren world is 10, then there is a 10% chance that a random world created by CreateRandomWorlds will be barren. The table is always defined in the order given in "Constants and Tables".

A value is required for all classes, although 0 is a legal value. In any event, the values must add up to 100 or an error will result.

The class table can be changed at any time by giving another ClassTable command. For example, a scenario which calls for areas with special worlds could be designed using alternate ClassTable and CreateRandomWorlds commands.

CreateNebula

type xy1 xy2

This command will cover the area from xy1 to xy2 with nebula of the given type. Types are as follows:

1 Normal
2 Dark Nebula
3 Dense Nebula

See: Specifying Coordinates.

Example:

CreateNebula 2 3,4 5,6

This command creates a square of dark nebula with coordinates 3,4 to 5,6.

CreateNPEmpire

emp type name rev tech techs mods

This command creates a non-player (computer controlled) empire with the following characteristics:

Emp: The number of the empire. See: CreatePlayerEmpire;

Type: The type of the empire:

1 Pirate: This empire will send out battle fleets to all parts of the galaxy looking for undefended transport fleets;

2 Kingdom: A defensive empire. Kingdoms will only attack if provoked;

3 Aggressor: Aggressor empires will attempt to expand their dominion over independent worlds, and will occasionally attack other empires without provocation;

Name: The name of the non-player empire (RndName specifies a random name). If the name is more than one word, it should be enclosed in quotes;

Rev: This factor is a measure of the restlessness of the people in the empire. See: CreatePlayerEmpire;

Tech: The technology level of the empire. See: CreatePlayerEmpire;

Modifiers: Special modifiers for this empire. See: CreatePlayerEmpire.

Example:

CreateNPEmpire 1
"Montressor" ; empire name
0 ; revolution fator
8 ; starship tech level
2 ; 2 technologies
10 ; starship tech
13 ; ninja tech
0 ; no modifiers

CreatePlayerEmpire

emp rev tech techs mods

This command creates a player empire with the following characteristics:

Emp: The number of the empire (starting from 0) that is to be created by this commands. Player empires should always be created first;

Rev: This factor is a measure of the restlessness of the people in the empire. The greater the value, the greater the yearly increase in revolution index. A value of 0 is standard. For example, an empire with a restlessness of 10 would have to be constantly conquering new worlds to prevent its own worlds from revolting. Values above 15 should really not be used;

Tech: The technology level of the empire (see "Constants and Tables" for tech level values). This value is followed by the number of known technologies in the level, and then by a list of those technologies (See: "Technologies Table"). For example, if an empire is at bio-tech level and has developed hunter killers, the tech numbers would be 7 (bio-tech) followed by 1 (one technology) followed by 6 (hunter-killers);

Modifiers: Modifiers are attributes of the empire that affect miscellaneous parts of the game. First the number of modifiers is given, followed by a list. Only one modifier is currently defined:

CENTRAL: Empires with this modifier are highly dependent on the capital. If the capital of a centralized empire is conquered, the empire collapses instantly and all its worlds become independent. Normally, if the capital of an empire is conquered, a new capital is selected.

Example:

CreateEmpire 1
0 ; revolution factor
9 ; pre-gate tech
0 ; 0 technologies
1 ; 1 modifier
CENTRAL ; centralized

Because a scenario may have a variable number of players, all commands to create a player empire greater than the number of players will be ignored. For example, suppose that a scenario has from 1 to 3 players. If only two players play, the third CreatePlayerEmpire command is ignored. The first two capitals are capitals of the empires, and the third is an independent world.

CreateRandomNebula

type min max

CreateRandomNebula will create a random number of nebulae of the given type. The number of nebulae will be between min and max. The following types are defined:

1 Band: This is a strip of nebula about seven sectors wide and at a random angle up to 45 degrees (in either direction) from the vertical;

2 Patch: A small patch of nebulae about ten sectors in size and in a random location.

CreateRandomWorlds

n zone

This command will create n random worlds using the current tech and class tables. All worlds will be restricted to zone.

CreateSRMs

emp xy1 xy2

Creates an SRM area from xy1 to xy2. Mines belong to emp.

CreateStarbase

n xy type
tech typ emp pop eff
LAM def GDM ion
fgt hkr jmp jtn pen str trn
men nnj amb che met sup tri

This command creates a starbase (number n) at coordinates specified by xy (see: "Specifying Coordinates") and sets its attributes.

The starbase may be one of the following types:

20 command base
21 fortress
22 industrial complex
23 outpost

All other characteristics are identical to those used in a CreateWorld command.

Example:

CreateStarbase 1 3,3
22 ; industrial complex
9 ; pre-gate tech
2 ; base planet
1 ; empire 2
2200 ; 22 billion pop.
34 ; 34% efficiency
; LAM, def, GDM, and ion
0 1000 1000 2000
; fgt, hkr, jmp, jtn, pen, str, and trn
1000 1000 1000 1000 1000 1000 1000
; men, nnj, amb, che, met, sup, and tri
1000 1000 1000 1000 1000 1000 1000

CreateWorld

n xy cls tech typ emp pop eff res
LAM def GDM ion
fgt hkr jmp jtn pen str trn
men nnj amb che met sup tri

This command creates a specific world (number n) at coordinates specified by xy (see: "Specifying Coordinates") and sets its attributes.

Cls: The class of the world. Use the constants given in "Constants and Tables" to determine class number. E.g. ambrosia worlds are class 0, ocean worlds are class 15.

Tech: The tech level of the world. Use the constants given in "Constants and Tables".

Typ: The type of the world. If the type is capital and the empire is not created, the world is left independent.

Emp: The empire to which it belongs:

0 Empire1
1 Empire2
.
.
.
7 Empire8
8 Independent.

Pop: The nominal population of the world in hundreds of millions. The actual population of the world will vary by 15%.

Eff: The efficiency of the world.

Res: The amount of trillum reserves on the planet. Planets do not have an infinite supply of trillum. There is a maximum amount of trillum that can be mined from the surface. Trillum reserves range from 0 to 100.

The remainder of the parameters deal with the resources of the world, defense satellites, starships, etc. Numbers are not exact, however, varying by 20% in either direction.

Example:

CreateStarbase 1 3,3
3 ; barren world
9 ; pre-gate tech
2 ; base planet
1 ; empire 2
2200 ; 22 billion pop.
34 ; 34% efficiency
50 ; trillum reserves
; LAM, def, GDM, and ion
0 1000 1000 2000
; fgt, hkr, jmp, jtn, pen, str, and trn
1000 1000 1000 1000 1000 1000 1000
; men, nnj, amb, che, met, sup, and tri
1000 1000 1000 1000 1000 1000 1000

DefineXY

point xy

This command will define a certain point in space so that it may be referenced by other commands. Point is a unique label that is to be used to refer to the point. Xy is the coordinate of the point (see "Specifying Coordinates".)

Example:

DefineXY Center 1,2

This will define Center as 1,2. Now coordinates can be specified relative to Center, as in Center:-2,1 or Center:6,8

Note: it is legal to use defined points in both zone definitions, and other point definitions.

DefineZone

zone xy1 xy2

DefineZone will define a square area of the galaxy described by the two pairs of coordinates xy1 (upper left) and xy2 (lower right). Zone is a unique number from 2 to 20 assigned to the zone and used to refer to it. Note: Zone 1 is pre-defined as the entire galaxy.

Report

string

When this command is reached the computer will write the given string, which must be enclosed in quotes ("), on the screen. Report is mainly used for debugging a scenario, although it may be used to inform a player of the progress of the scenario creation.

TechTable

t1 t2 t3 ...

This command defines the current technology levels table. All subsequent CreateRandomWorlds commands will use this table. This command operates much like ClassTable. The chance for each tech level must be given in the order given in "Tables and Constants".

Like ClassTable, each value represents the percent chance that a random world will be of the given tech.