Permissions and declared attitudes
==================================


Commands dealing with permissions:

        ADMIT
        HOSTILE
        NEUTRAL
        DEFEND
        DEFAULT


Attitudes can be declared by or for either specific units, or an entire
faction.  For instance, player [613] could declare a permission or
attitude for player [555], or a specific attitude for individual units
within player 555's faction.

Declaring a permission for a player works so long as the player's units
are not concealing their faction identity with Conceal faction [9591],
a subskill of Stealth [122].


Allowing entrance and stacking
------------------------------

By default, a unit may not stack with a character belonging to another
faction.  A unit is also denied entry to a building or ship controlled
by another player.

Players may allow units from other factions to stack with them or enter
buildings or ships they control with the ADMIT order.


Combat attitudes
----------------

A unit may have one of four combat attitudes to another unit:

        HOSTILE         Attack on sight.
        DEFEND          Defend other unit if attacked.
        NEUTRAL         Do nothing if other unit is attacked.

        DEFAULT         Neutral to units in other factions;
                        Defend units in the same faction unless
                        either one is concealing its lord.
                        
Every character, and player faction entity, keeps three lists of units
or other factions which have attitudes declared towards them.  A unit
is either on the HOSTILE, DEFEND, or NEUTRAL list.  If a unit does not
appear on any of the three lists, it has attitude DEFAULT.

Example:

        player          778                     816
                          hostile 816

        units           4205                    6499
                        4600                    6530, concealing lord
                                                6599
        

    Player 778 has declared player 816 hostile.  One of 816's characters
    is concealing its lord.

    If 4205 or 4600 run into unit 6499, they will attack it on sight.
    However, since 6530 is hiding its affiliation with 816, it will
    not be attacked on sight.

    If 6499 is attacked and both 6530 and 6599 are present, 6599 will
    aid in the defense, but 6530 will not, because that might give
    away its affiliation.

    If player 816 wanted 6530 to defend the faction's units anyway, either
    816 or 6530 should issue the order "DEFEND 816".  This would override
    the default attitude of units in the faction to one another.

Attitude toward units is considered before attitude toward the unit's
faction.  Thus, one may declare a faction hostile, but exclude certain
units within the faction by specifically declaring them neutral.

A unit must be the top-most character in its stack to aid in defense.
If a unit joins a combat because of DEFEND, it will bring its entire
stack along, even if the other members of the stack have not declared
a DEFEND attitude.

Defenders only help when units are attacked, not when they initiate
attacks.  For example, if A has declared DEFEND B, and B attacks C,
A will not help B, even if B loses the battle.

Characters declared DEFEND to units which are guarding a province against
pillaging will aid the guards if they are attacked, either explicitly
with ATTACK, or implicitly via PILLAGE 1.

Units which joined a combat because of a DEFEND declaration are shown with
the qualification "ally" in the combat report.


