Changes between Initial Version and Version 1 of XML.Entity.Actions.Create


Ignore:
Timestamp:
Feb 23, 2008, 4:19:00 AM (11 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XML.Entity.Actions.Create

    v1 v1  
     1An 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.
     2
     3Note: 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).
     4
     5'''Example:'''
     6{{{
     7                <Create>
     8                        <List>
     9                                <StructCiv>civil_centre;farmstead;house;mill;market;temple</StructCiv>
     10                                <StructMil>barracks;dock;fortress;scout_tower;wall;wall_gate;wall_tower</StructMil>
     11                                <Unit>infantry_swordsman_b;infantry_spearman_b;infantry_javelinist_b;
     12                                      infantry_archer_b;infantry_slinger_b;cavalry_swordsman_b;
     13                                      cavalry_spearman_b;cavalry_javelinist_b;cavalry_archer_b;
     14                                      female_citizen</Unit>
     15                                <Tech>bob</Tech>
     16                        </List>
     17                        <Speed>1</Speed>
     18                </Create>
     19}}}
     20----
     21
     22= List =
     23''BRIEF DESCRIPTION ::'' The list group contains lists of objects that can be created.
     24
     25== !StructCiv ==
     26''BRIEF DESCRIPTION ::''A list of the civic structures that this entity can create.
     27
     28For a list of valid entity names, see '''Traits.Id'''.
     29
     30== !StructMil ==
     31''BRIEF DESCRIPTION ::''A list of the military structures that this entity can create.
     32
     33For a list of valid entity names, see '''Traits.Id'''.
     34
     35== !StructCiv ==
     36''BRIEF DESCRIPTION ::''A list of the units that this entity can create.
     37
     38For a list of valid entity names, see '''Traits.Id'''.
     39
     40== Tech ==
     41''BRIEF DESCRIPTION ::''List of technologies (by Tag) that is researchable from within this entity.
     42
     43'''Not yet implemented.''' Awaiting technology research support.
     44
     45For more about Technologies see the '''Tech XML'''.
     46
     47= Speed =
     48''BRIEF DESCRIPTION ::'' Rate of Construction.
     49
     50This 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.
     51
     52By default, the speed is 1 (no change).
     53
     54'''Not yet implemented.'''
     55
     56''Examples:''
     57 * 1 - Constructs at base rate.
     58 * 1.5 - Constructs at x1.5 normal rate.
     59 * 2 - Constructs at double normal rate.![/quote]
     60
     61= Notes: Building Placement =
     62
     63Here is how I would like to do the UI for placing buildings on the map:
     64
     65[[Image(http://www.wildfiregames.com/~art/wijit/buildingUI.jpg)]]
     66
     67This 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. 
     68
     69 1. Select your building you want to make, and click its icon in the UI
     70 1. 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)
     71 1. Left click and hold once you have found your spot
     72 1. Move/Drag your mouse in the desired orientation (I want it SE)
     73 1. Drag (no wait, I want it SW)
     74 1. Release your left mouse button, once you do the building footprint actor will be put in place and the terrain would be flattened.
     75 1. 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)
     76 1. Your finished building
     77
     78Now, 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.
     79
     80But 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.