An entity with the Create action is able to create (train, construct) other entities. For details about an entity's prerequisites and costs for creation, see the Traits.Creation trait.

Note: We assume here that an entity can create any other entity, and do not differentiate between types. Different entity types do have different kinds of logic for creation, however (for example, structures are placed with a footprint cursor, while units leave the structure once trained and move to the structure's rally point).

Example:

 		<Create>
 			<List>
 			  	<StructCiv>civil_centre;farmstead;house;mill;market;temple</StructCiv>
 			  	<StructMil>barracks;dock;fortress;scout_tower;wall;wall_gate;wall_tower</StructMil>
 			  	<Unit>infantry_swordsman_b;infantry_spearman_b;infantry_javelinist_b;
                                      infantry_archer_b;infantry_slinger_b;cavalry_swordsman_b;
                                      cavalry_spearman_b;cavalry_javelinist_b;cavalry_archer_b;
                                      female_citizen</Unit>
 				<Tech>bob</Tech>
 			</List>
 			<Speed>1</Speed>
 		</Create>

List

BRIEF DESCRIPTION :: The list group contains lists of objects that can be created.

StructCiv

BRIEF DESCRIPTION ::A list of the civic structures that this entity can create.

For a list of valid entity names, see Traits.Id.

StructMil

BRIEF DESCRIPTION ::A list of the military structures that this entity can create.

For a list of valid entity names, see Traits.Id.

StructCiv

BRIEF DESCRIPTION ::A list of the units that this entity can create.

For a list of valid entity names, see Traits.Id.

Tech

BRIEF DESCRIPTION ::List of technologies (by Tag) that is researchable from within this entity.

Not yet implemented. Awaiting technology research support.

For more about Technologies see the Tech XML.

Speed

BRIEF DESCRIPTION :: Rate of Construction.

This is an attribute of an object capable of constructing/training another object (such as a Citizen Soldier constructing a structure, or a structure training an Infantry Spearman). It modifies the base rate at which any Create.List entity is constructed (see Creation.Time) by the entity.

By default, the speed is 1 (no change).

Not yet implemented.

Examples:

  • 1 - Constructs at base rate.
  • 1.5 - Constructs at x1.5 normal rate.
  • 2 - Constructs at double normal rate.[/quote]

Notes: Building Placement

Here is how I would like to do the UI for placing buildings on the map:

http://www.wildfiregames.com/~art/wijit/buildingUI.jpg

This is the method used by Generals, and I like it a lot because of its freedom and control, and it doesn't tie up the scroll which is used for zooming.

  1. Select your building you want to make, and click its icon in the UI
  2. Move to your game screen and find where you would like to place it, if its obstructed it would have some sort of a red warning (also if it had an aura [resource center, health center, etc..), it would show up when you are in the process of finding a good placement)
  3. Left click and hold once you have found your spot
  4. Move/Drag? your mouse in the desired orientation (I want it SE)
  5. Drag (no wait, I want it SW)
  6. Release your left mouse button, once you do the building footprint actor will be put in place and the terrain would be flattened.
  7. Your worker arrives and the building animation begins (scaffolding rises, once its 100% up, the building rises up, when the construction is 100% the scaffolding disappears and the props for the building are put into place instantly)
  8. Your finished building

Now, as for if this will effect simulation... well ,it will I think. Mainly due to the spawn points I think, and garrisoning. As a unit is trained it will 'spawn' at a prop point - usually a door or something (not in the middle of the building either). If your enemy is in the east, you would want to orientate your barracks so that the spawn point was also in the east.

But if you don't care about orientation (some buildings it doesn't matter), you can just do a simple click release and that would basically skip the orientation steps and you would just get the default orientation of the building.

Last modified 9 years ago Last modified on Feb 23, 2008, 4:19:00 AM