#+ The zone editor

{BMC PORTRAIT.BMP}   
Alexis Vaisse        

Presentation of the zones

The different types of zones
The zones of an actor
The zones of a module

Creation of a zone

How to create a zone of actor
The list of the families, models, actors...
The list of the zones of actor
Creation of shared zones
How to change the name of a list of zones
How to set a zone to a given name
How to create a zone of module
How to change the size of a zone

Visualization of the zones

Visualization of an actor alone with its zones
Visualization of the zones of several actors
Visualization of the zones in another editor, during the game
Visualization of an actor with its zones of module

#+ Research

Click on the element you want to learn more about :

{BMC GENERAL.SHG}          {BMC GENEMODE.SHG}

#+ The different type of zones

There are two categories of zones zones :

- The zones of actor, which are defined for each actor,
- The zones of module, which are defined for each module of the actor (the head, the hand…)

#+ The zones of actor

There are four types of zones of actor :

- the zones of detection (ZDD),
- the zones of event (ZDE),
- the zones of movement (ZDM),
- and the zones to reposition (ZDR).

For each model, four lists of names can be defined : one list of names of ZDD, one of ZDE, one of ZDM and one of ZDR.
Each actor of this model will have four associated list of zones. The size of a list of zones is equal to the size of the associated list of names of the model (as many zones as names).

See How to create a zone of actor

#+ The zones of module

There are four types of zones of module :

- the zones of detection (ZDD),
- the zones of event (ZDE),
- the zones of movement (ZDM),
- and the zones to reposition (ZDR).

For each module of an actor, one can define one ZDD, one ZDE, one ZDM and one ZDR.

See How to create a zone of module

#+ How to create a zone of actor

Here is the method to follow to create zones of actor : 

1. First, the model of the actor must have four lists of names. If this is not the case, you have to create them in the actor editor :

{BMC LISTENOM.BMP}

	This automatically creates some lists of zones for each actor of this model.

2. In the zone editor, choose the type of zone (zdd, zde, zdm ou zdr) you when to create by selecting an empty position in the list :

{BMC LIST2.BMP}

3. Drag and drop the zone you want (sphere, box, point or cone) to the actor into the 3D view.

#+ The list of families, models, actors...

{BMC LIST1.BMP}

In this list, you can choose between :

1. the list of all families of the current map, with the models of each family,
2. the list of all models, with the actors of each model,
3. the list of the models of one family, with the actors of each model,
4. the lists of one model, with the list of zones (ZDD, ZDE, ZDM and ZDR) of each actor,
5. the list of all the modules of an actor, with the zones of each module.

To show a list, you can :
- select the list into the combo box,
- double-click on one element of the list
- click on the ‘Return’ button : {BMC RETOUR.BMP}

Each element has an icon that visualizes its type :

{BMC FAMILLE.BMP}	: family
{BMC MODELE.BMP}	: model
{BMC ACTEUR.BMP}	: actor
{BMC LISTE.BMP}	: list of zones
{BMC MODULE.BMP}	: module
{BMC ZONE.BMP}	: zone

#+ The list of zones of actor

{BMC LIST2.BMP}

The icon at the left of a zone visualizes  the type of the zone. You define this type for each name when you create the list of names. Therefore all actors of a model have the same list of types.

{BMC COMMUN.BMP} common : all actors of the model have the same zone.
{BMC PARTAGE.BMP} shared : some actors can have the same zone, some can have another one.
{BMC VIERGE.BMP} virgin or specific : each actor has its own zone, which cannot be shared.

See Creation of shared zones

#+ Creation of shared zones

If you modify a shared field (by inserting a zone, removing a zone or reversing two zones and at least one of them is shared) and if the list of zones is used by several actors (or one actor and one model), you are asked if you want the modification to be done for all actors using this list :

{BMC MODIFPAR.BMP}

If you answer YES, the modification is done in the current list of zones, so all actors using this list get this modification.

If you answer NO, a new list of zones is creating for the current actor, and the modification is done in this list. All the other actors does not see this modification. This lets you personalize the zone of one actor.

#+ How to change the name of a list of zones

You can change the name of a list of zones in the first list (top left of the screen) :

{BMC NOMLISTE.BMP}

#+ How to set a zone to a given name

When you create a new zone with a drag and drop, it is put in the first unused position of the list of zones.

If you want to create a zone in a specific position (and also if you want to choose the type of the zone : ZDD, ZDE, ZDM or ZDR), you just have to select this empty position before creating the zone.

To change the position (this can also change its type), select the zone with a right click, and move it).

{BMC DRAGDROI.BMP}

#+ How to create a zone of module

To edit a zone of module, you have to choose the list of the modules of the actor : {BMC LISTMODU.BMP}, with the combo box or with the {BMC BOUTMODU.BMP} button.
The modules of the actor are displayed in a grid with one module in each square.

You create a zone of module the same way as you create a zone of actor : select the type of zones (ZDD, ZDE, ZDM or ZDR) into the list and drag and drop the zone (sphere, box, point or cone) you want on the module.

#+ How to change the size of a zone

In the editor of zones, select the zone to modify.

With the keyboard :
Enter the new size (and the position) in the dialog box.

With the mouse :
Click on the zone with the Control key pressed.

#+ Visualization of an actor alone with its zones

Click on the {BMC LUNETTE.BMP} button in the top right of the dialog of the editor of zones to visualize the current actor alone with its zones.
Click a second time to go back to the normal mode.

#+ Visualization of the zones of several actors

{BMC DISPLAY.BMP}

With the Display Control dialog, you can visualize the zones of all existing actors, or all zones of some actors, or some zones of some actors.

The button on the All Actors line controls the display of the zones of all actors (except for the current actor whose zones are always displayed when you are in the editor of zones).
To visualize the zones of all actors, select the On button of the All Actors line. To hide them, select the Off button.
To visualize the zones of some actors, select the Select button of the All Actors line. Select an actor and click on the On button of the Current Actor line. Repeat this for each actor you want the zones to be displayed.

You can visualize only certain zones of an actor, when you select the visualization of the zones of all actors or of some actors. For this, you have to click on the Selected button of the Current Actor line. Select the zones you want to see with the check box at the right of each zone :

{BMC SELECTED.BMP}

As the zones of the current actor are always displayed, the modifications for the current actor (with the On, Off and Selected buttons or with the check box of each zone) become visible only when the actor is no longer the current actor.

#+ Visualization of the zones in another editor, during the game

All the options of the Display Control dialog keep valid when you exit the zone editor.
You can enter another editor (the material editor for instance, to set the material of the zones), or resume the game and the zones are still displayed.

You can use an entry of the popup menu when you click on an actor to show or hide the zones of this actor immediately, when you are not into the zone editor (‘Show global zones’ or ‘Hide global zones’).
The entry is visible only if the selected actor has at least one zone. 

#+ Visualization of an actor with its zones of module

You can use an entry of the popup menu when you click on an actor to show or hide the zones of module of this actor immediately, when you are not into the zone editor (‘Show module zones’ or ‘Hide module zones’).
The zones of module of the actor are displayed, but one cannot select them.
This entry is visible only if the selected actor has at least one zone for the module it is using with its current animation (if you only have one zone for one module but this module is not currently used, this entry will not exist).

In the zone editor, use the {BMC BOUTAFFI.BMP} button.

#Liste of names : contains the names which will be used by the Artificial Intelligence to name a zone.

#Popup menu : context menu you can open by clicking with the right button on an object (an actor for instance) into the 3D view.