íà ãëàâíóþ ñòðàíèöó
Êðóïíåéøèé ñàéò î ñòðàòåãèÿõ. Îáçîðû íîâèíîê.Àêòèâíûé ÔÎÐÓÌ è âñòðå÷è ñ ðàçðàáîò÷èêàìè. Áîëüøàÿ êà÷àëêà ÌÎÄîâ äëÿ RTW è íå òîëüêî. Ðîäíîé äîì «Èìïåðèè» è «Áîíàïàðòà».
Íà internetwars.ru


ÝÍÖÈÊËÎÏÅÄÈß ÌÎÄÅËÈÐÎÂÀÍÈß

 

Âåðíóòüñÿ ê îãëàâëåíèþ

ÊÀÊ ÑÎÇÄÀÂÀÒÜ ÍÎÂÛÅ ÁÎÅÂÛÅ ÔÎÐÌÀÖÈÈ


ÍÀØ ÔÎÐÓÌ

Çäåñü ìîæíî çàäàòü âîïðîñ ïî ýòîìó òóòîðó. ì

Àêòèâíî îáñóæäàåì âîåííûå èãðû, èñòîðèþ, ÌÎÄû, è íîâèíêè
èãðîâîãî ìèðà.

Ðàññìîòðèì äëÿ ïðèìåðà ñëåäóþùóþ. Îíà ðàññ÷èòàíà íà ðàçìåùåíèå ÷ëåíîâ ñåìüè ãåíåðàëîâ.

begin_formation ai_family_multi

        attack

            defend

            ai_priority                                2.0

 

            ;; Family-members, first line

            begin_block 0

                        min_units                     2

                        max_units                    3

                        not_general

                        unit_type                      skirmish cavalry                       1.0

                        default_melee_state                 skirmish

                        unit_density                             close

                        min_unit_width                        16

                        max_unit_width                                   22

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Family-members, left

            begin_block 1

                        not_general

                        unit_type                      skirmish cavalry                       1.0

                        default_melee_state                 skirmish

                        unit_density                             close

                        min_unit_width                        16

                        max_unit_width                                   22

                        block_formation                                  line

                        block_relative_pos       0 -18.0 -2.0

                        inter_unit_spacing        2.0

                        priority             0.8

            end_block

 

            ;; Family-members, right

            begin_block 2

                        not_general

                        unit_type                      skirmish cavalry                       1.0

                        default_melee_state                 skirmish

                        unit_density                             close

                        min_unit_width                        16

                        max_unit_width                                   22

                        block_formation                                  line

                        block_relative_pos       0 18.0 -2.0

                        inter_unit_spacing        2.0

                        priority             0.8

            end_block

 

            ;; Family-member, General

            begin_block 3

                        min_units                     1

                        max_units                    1

                        unit_type                      skirmish cavalry                       1.0

                        default_melee_state                 skirmish

                        unit_density                             close

                        min_unit_width                        16

                        max_unit_width                                   22

                        block_formation                                  line

                        block_relative_pos       0 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Siege equipment, left

            begin_block 4

                        unit_type                      siege                                        1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        min_unit_width                        11

                        max_unit_width                                   11

                        block_formation                                  line

                        block_relative_pos       3 -6.0 -2.0

                        inter_unit_spacing        6.0

                        priority             0.4

            end_block

 

            ;; Siege equipment, right

            begin_block 5

                        unit_type                      siege                                        1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        min_unit_width                        11

                        max_unit_width                                   11

                        block_formation                                  line

                        block_relative_pos       3 6.0 -2.0

                        inter_unit_spacing        6.0

                        priority             0.4

            end_block

 

            ;; Dummy block

            begin_block 6

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       3 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Íà òàêòèêå ïîñòðîåíèå â ýòîé ôîðìàöèè âûãëÿäèò, êàê ïîêàçàíî íà êàðòèíêå ñïðàâà:

ß ïîñòàðàþñü îáúÿñíèòü èñïîëüçîâàíèå îïåðàòîðîâ ôîðìàöèé íà ïðèìåðå òîé ôîðìàöèè, êîòîðàÿ íàõîäèòñÿ âûøå, òàê êàê î÷åíü âàæíî ïîíèìàòü íàçíà÷åíèå êàæäîé îäèíî÷íîé êîìàíäû, èç êîòîðûõ ìû ìîæåò ñäåëàòü èíòåðåñíûå êîìáèíàöèè îïåðàòîðîâ, òàê ÷òî íàì ïîíàäîáèòñÿ âíèìàíèå, ÷òîáû óÿñíèòü íåêîòîðûå òîíêîñòè ìîääèíãà ôîðìàöèé.
Íåñìîòðÿ íà òî, ÷òî â ýòîé ôîðìàöèè ó ìåíÿ íåò ãåíåðàëà, îí âñåãäà àâòîìàòè÷åñêè áóäåò íàõîäèòñÿ â öåíòðå ôîðìàöèé, êàê âû ìîæåòå çäåñü óâèäåòü.

-Íàçâàíèå ôîðìàöèè
Êàæäàÿ ôîðìàöèÿ íà÷èíàåòñÿ ñ åå ñîáñòâåííîãî íàçâàíèÿ, òàê æå êàê êàæäàÿ õàðàêòåðèñòèêà, þíèò, çäàíèå èëè ãîðîä ... òàê æå êàê ëþáîìó êîìïîíåíòó â èãðå äîëæíî áûòü ïðèñâîåíî êàêîå-òî èìÿ, áåç êîòîðîãî îíà íå ñìîæåò ðàñïîçíàâàòü åãî.
Îáû÷íî, êîãäà âû íàçûâàåòå ÷òî-òî, âàì íå ñëåäóåò ïîâòîðÿòü ýòî íàçâàíèå äâàæäû èëè áîëåå, õîòÿ, êàæåòñÿ, èãðà ìîæåò  îïåðèðîâàòü ñ ïîâòîðÿþùèìñÿ íàçâàíèåì, íî âñå æå ÿ ðåêîìåíäóþ èñïîëüçîâàòü ðàçíûå íàçâàíèÿ â ôîðìàöèÿõ.

Ôîðìàöèÿ íà÷èíàåòñÿ ñ îïåðàòîðà: "begin_formation”, êîòîðûé ñëåäóåò çà èìåíåì, êîòîðîå âû ïðèñâîèëè ôîðìàöèè.
â êîíöå êàæäîé ôîðìàöèè íåîáõîäèìî èñïîëüçîâàòü êîìàíäó "end_formation"

-Öåëü ôîðìàöèè
Ñóùåñòâóåò íåñêîëüêî ðàçëè÷íûõ öåëåé äëÿ ôîðìàöèè, è âû íå ìîæåòå äîáàâëÿòü ñâîè öåëè.
ÈÈ óñòàíàâëèâàåò îïðåäåëåííûå öåëè äëÿ êàæäîé àðìèè, êîòîðàÿ ó÷àñòâóåò â áèòâàõ:

-attack
-defend
-march
-pursue
-standard_ambush_defender_deployment

-ñóùåñòâóåò åùå íåñêîëüêî öåëåé äëÿ áèòâû ó ìîñòà è îñàäû (ïðî íèõ ïîçæå)

Êîãäà àðìèÿ ðàçâîðà÷èâàåòñÿ, îíà  áóäåò ïî óìîë÷àíèþ ðàçâåðíóòà â "defend" formation  è ñîõðàíèò "defend" purpose èëè ïîñëå íà÷àëà áèòâû ïåðåêëþ÷èòñÿ íà "attack" purpose.
Àðìèÿ, çàäåéñòâîâàííûå â êà÷åñòâå ïîäêðåïëåíèÿ, äîëæíà èñïîëüçîâàòü âìåñòå öåëè "attack/defend", èñõîäÿ èç îïûòà Äàðòà  Âåéäåðà.
Êàê òî÷íî âåäóò ñåáÿ ïîäêðåïëåíèÿ íà ïîëå áîÿ, ÿ òî÷íî íå çíàþ ... ïîêà, íî ÷òî ÿ òî÷íî çíàþ, ýòî  ÷òî ÈÈ-àðìèè ñ  "defend" ìîãóò âêëþ÷èòü ïîäêðåïëåíèÿ â ñâîé ñîñòàâ è ïðèñîåäèíèòü ê ñåáå îãðîìíóþ àðìèþ, à ýòî çíà÷èò, ÷òî íóæíî áûòü óâåðåííûì, ÷òî âàøà ôîðìàöèÿ íå îãðàíè÷åíà ìàêñèìàëüíî 20, ýòî ìîæåò áûòü ïðè÷èíîé òîãî, ÷òî ïîäêðåïëåíèÿ òàê è íå ïðèñîåäèíÿòñÿ íà ïîëå áèòâû, õîòÿ ÿ äóìàþ, ÷òî ýòî íå åäèíñòâåííàÿ ïðè÷èíà. .
Ëó÷øå âñåãî èñïîëüçîâàòü ñðàçó äâå öåëè â ôîðìàöèè:
attack
defend
(êàê ó ìåíÿ çàïèñàíî â ôîðìàöèè âûøå)
.

Âàì íå íóæíû ôîðìàöèè òîëüêî äëÿ àòàêè è çàùèòû, õîòÿ îíè ïîçâîëÿòü ñäåëàòü ñóùåñòâåííûå ðàçëè÷èÿ ìåæäó àòàêóþùåé è îáîðîíÿþùåéñÿ àðìèåé (èëè â ïîäêðåïëåíèè, ïî ìåíüøåé ìåðå, â íåêîòîðûõ ñëó÷àÿõ).

ß òî÷íî íå çíàþ, êàê èñïîëüçóþòñÿ "march" and "pursue" ôîðìàöèè, òàê êàê â ìîèõ òåêóùèõ ýêñïåðèìåíòàõ ÿ äåëàë î÷åíü ïðîñòûìè è íèêîãäà íå çàìå÷àë, ÷òîáû îíè êîãäà-íèáóäü èñïîëüçîâàëèñü , ÷òî íå çíà÷èò, ÷òî îíè íèêîãäà íå èñïîëüçóåòñÿ. ß, ïîêà, ïðîñòî íå çíàþ.

"standard_ambush_defender_deployment" purpose èñïîëüçóåòñÿ, êîãäà àðìèÿ óñïåøíî ñäåëàëà çàñàäó, è àðìèÿ ðàçâîðà÷èâàåòñÿ â ñåðåäèíå çàñàäíîé çîíû.
Ïðèìå÷àíèÿ ïî ðàçâåðòûâàíèþ â çàñàäå; áóäüòå óâåðåíû, ÷òî, êîãäà âû èãðàåòå áîëüøèìè èëè îãðîìíûìè àðìèÿìè, îíà äåéñòâèòåëüíî ñïîñîáíà ðàçâåðíóòñÿ â çàñàäíîé çîíå, òàê êàê âàíèëüíàÿ âåðñèÿ íå ìîæåò àêêóðàòíî îïåðèðîâàòü ôîðìàöèÿìè â òàêèõ çîíàõ. Âàíèëüíàÿ âåðñèÿ ÷àñòî ñòàâèò àðìèè â êîëîííó øèðèíîé â îäèí îòðÿä. Èç-çà ýòîãî àðìèè ñòàíîâÿòñÿ ñëèøêîì äëèííûìè, è ïîëîâèíà ñòåêà ðàçâîðà÷èâàåòñÿ â óãëó êàðû, äåëàéòå àðìèè øèðå èëè â 2-3 êîëîííû, â çàâèñèìîñòè îò íàñòðîåê èãðû, ýòî ïîìîæåò èçáåæàòü íåæåëàòåëüíûõ ñëó÷àéíîñòåé.

- Ïðèîðèòåò ôîðìàöèè
Ïîñëå óêàçûâàíèÿ öåëè ôîðìàöèè íåîáõîäèìî óñòàíîâèòü ïðèîðèòåò.

ß ëè÷íî èñïîëüçóþ ïðèîðèòåò äâóõ óðîâíåé: 2.0 äëÿ attack è defend è 1.0 äëÿ âñåãî îñòàëüíîãî.
Ýòî ïðèâîäèò ê òîìó, ÷òî  attack and defend formations âñåãäà áóäóò ïðåäïî÷òèòåëüíåå äëÿ ÈÈ, ÷åì   ôîðìàöèÿ òîëüêî ñ îäíîé êîìàíäîé  attack/defend, êîòîðàÿ ìîæåò èñïîëüçîâàòüñÿ òîëüêî ïîäêðåïëåíèÿìè, è ëþáûå äðóãèå ôîðìàöèè ìîãóò áûòü èñïîëüçîâàíû, åñëè òîëüêî êîððåêòíîé  ôîðìàöèè ñîîòâåòñòâóåò íóæíûé ïðèîðèòåò.

-Ïîääåðæèâàåìûå ôðàêöèè
Åñëè âû õîòèòå, ÷òîáû ôîðìàöèè èñïîëüçîâàëàñü òîëüêî êîíêðåòíûìè ôðàêöèÿìè, âû äîëæíû èñïîëüçîâàòü îïåðàòîð "supported_factions" äî ôàêòè÷åñêîãî íà÷àëà ôîðìàöèè.
Êîìàíäà èñïîëüçóåòñÿ ïðèìåðíî òàê:

supported_factions romans_julii, romans_scipii è òàê äàëåå

Èòàê, ÷òî ìû èìååì òåïåðü ïîñëå âñåãî âûøåñêàçàííîãî:

begin_formation ai_my_formation

        attack

            defend

            ai_priority                                1.0

 

            supported_factions romans_julii, romans_scipii

 

            {Çäåñü íà÷èíàåòñÿ ôàêòè÷åñêè ôîðìàöèÿ}

 

end_formation

Ôîðìàöèÿ (åñëè ñêàçàòü ïðîñòî) – ýòî êîìáèíàöèÿ áëîêîâ. Èõ èñïîëüçîâàíèå çàâèñèò îò âàøèõ çíàíèé è ôàíòàçèè.
Êàæäîìó èç ýòèõ áëîêîâ ìîãóò áûòü äàíû ðàçëè÷íûå íàñòðîéêè, êîòîðûå ñäåëàþò ïîõîæèå íà ïåðâûé âçãëÿä ôîðìàöèè àáñîëþòíî ðàçëè÷íûìè.

Êîãäà àðìèÿ ðàçâåðíóòà (ÈÈ èëè èãðîêà), èãðà ïðîñìàòðèâàåò ôîðìàöèè â ïîèñêàõ íàèáîëåå ïîäõîäÿùåé, èñïîëüçóÿ êîððåêòíóþ öåëü ôîðìàöèè è ïðîñìàòðèâàÿ ïðèîðåòåòû, ïîýòîìó ïîäõîäÿùàÿ äëÿ îáîðîíû ôîðìàöèÿ íå ìîæåò áûòü èñïîëüçîâàíà â àòàêå è òàê äàëåå.

Åñòü íåñêîëüêî ñïîñîáîâ âîçäåéñòâèÿ íà èãðó, ÷òîáû çàñòàâèòü âûáèðàòü íóæíóþ äëÿ âàñ ôîðìàöèþ, íàèáîëåå «ãðóáûå» - ýòî ïðèîðèòåò è ïîääåðæèâàåìûå ôðàêöèè, õîòÿ îáà áëîêà ìîãóò è íå äàòü èãðå âûáðàòü ôîðìàöèþ. Äëÿ ïðèìåðà, âû õîòèòå âûáðàòü ôîðìàöèþ äëÿ ôðàêöèè, ãäå ìíîãî êàâàëåðèè (ãóííû è ò.ä.) Íî â ôîðìàöèè âû çàáûëè ïîñòàâèòü áëîê êàâàëåðèè. Òîãäà èç-çà ýòèõ äâóõ îãðàíè÷åíèé èãðà èëè âûëåòèò, èëè âûáåðåò íå òó ôîðìàöèè.

- Ëîæíûå áëîêè
Ñóùåñòâóåò äâà âèäà áëîêîâ: ëîæíûå áëîêè è áëîêè äëÿ þíèòîâ.
Ëîæíûå áëîêè âêëþ÷àþò äâà êîíïîíåòà:
-spacer
-spans

Spacer ïîçâîëÿåò ñîçäàâàòü ïóñòûå áëîêè áåç ðàçìåùåíèÿ þíèòîâ. Ýòî íåîáõîäèìî, íàïðèìåð, ÷òîáû óñòàíîâèòü äîïîëíèòåëüíîå ðàññòîÿíèå ìåæäó äâóìÿ äðóãèìè áëîêàìè ïðè íåõâàòêå íåîáõîäèìûõ þíèòîâ â ñòåêå. Ñïåéñåðû íóæíû äëÿ ñîçäàíèÿ ïðîìåæóòêîâ (íå çàíÿòûõ þíèòàìè) ìåæäó áëîêàìè è þíèòàìè.

Ïðèìåð ôîðìàöèè ñ ïîëåçíûì ñïåéñåðîì.
Ýòî ôîðìàöèÿ ñîçäàíà äëÿ ãåíåðàëà è àðìèè ëó÷íèêîâ, êîòîðûå ñòóïàþò â áèòâó âêà÷åñòâå ïîäêðåïëåíèÿ (íåòåñðèðîâàííàÿ ôîðìàöèÿ, äàåò ïðåäñòàâëåíèå, êàê ðàáîòàåò ñïåéñåð):

begin_formation ai_archer_small_reinforcements

        attack

            defend

            ai_priority                                1.0

 

            begin_dummy_block 0

                        spacer                         0.0 0.0 60 30

            end_dummy_block

 

            ;; Archers, left

            begin_block 1

                        min_units                     1

                        max_units                    3

                        unit_type                      ranged_missile_infantry                        1.0

                        default_melee_state                 fire_at_will_and_defend_and_skirmish

                        unit_density                             close

                        min_unit_width                        40

                        max_unit_width                                   40

                        block_formation                                  column

                        block_relative_pos       0 -2.0 0.0

                        inter_unit_spacing        3.0

                        priority             1.0

            end_block

 

            ;; Archers, right

            begin_block 2

                        min_units                     1

                        max_units                    3

                        unit_type                      ranged_missile_infantry                        1.0

                        default_melee_state                 fire_at_will_and_defend_and_skirmish

                        unit_density                             close

                        min_unit_width                        40

                        max_unit_width                                   40

                        block_formation                                  column

                        block_relative_pos       0 2.0 0.0

                        inter_unit_spacing        3.0

                        priority             1.0

            end_block

 

            ;; Generals unit, in center behind

            begin_block 3

                        min_units                     1

                        max_units                    1

                        unit_type                      general_unit                             1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 4

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       3 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

 

end_formation

Ýòà ôîðìàöèÿ äëÿ 2-6 îòðÿäîâ ëó÷íèêîâ âìåñòå ñ ãåíåðàëîì, õîòÿ ýòà ôîðìàöèÿ ìîæåò áûòü èñïîëüçîâàíà òàê äëÿ ãåíåðàëà, òàê è äëÿ îäíîãî îòðÿäà ëó÷íèêîâ – âñå çàâèñèò îò äðóãèõ ôîðìàöèé â ôàéëå.
Ëó÷íèêè ðàçâåðíóòû â äâå êîëîííû ñ ïðîìåæóòêîì, ÷òîáû ïîçâîëèòü ïîòåíöèàëüíî ãåíåðàëó àòàêîâàòü ïîä ïðèêðûòèåì ëó÷íèêîâ.

Spans íåîáõîäèìû äëÿ òîãî, ÷òîáû ñâÿçàòü íåñêîëüêî áëîêîâ â îäèí, êîãäà íóæíî ðàçìåñòèòü ÷òî-òî îòíîñèòåëüíî ýòèõ íåñêîëüêèõ áëîêîâ.
Îáû÷íî ñïàíû íå íóæíû, íî â íåêîòîðûõ ñëó÷àÿõ îíè ìîãóò áûòü ïîëëåçíûìè, íàïðèìåð, êîãäà ó âàñ åñòü äâå ëèíèè ïåõîòû è âû õîòèòå, ÷òîáû êàâàëåðèÿ ðàçâåðíóëàñü íà îïðåäåëåííîì ðàññòîÿíèè îò îêîíå÷íîñòè ôëàíãà, âû ìîæåòå îáúåäèíèòü îáå ëèíèè ïåõîòû äëÿ áîëüøåé óâåðåííîñòè â ïðàâèëüíîì ðàçâåðòûâàíèè êàâàëåðèè. Íå âàæíî, ñêîëüêî þíèòîâ íàõîäèòñÿ â ïåðâîé è âî âòîðîé ëèíèè, ñïàíû ñäåëàþò ïåðâóþ è âòîhe. ëèíèþ êàê áû îäíèì áëîêîì, è êàâàëåðèÿ áóäåò ðàçâîðà÷èâàòüñÿ îòíîñèòåëüíî îáåõ ëèíèé.
Âû ìîæåòå ðàçìåñòèòü ïðèìåðíî îò 1 äî 10, áîëåå ýòîãî ÷èñëà ìíå èñïîëüçîâàòü íå ïðèõîäèëîñü.

Âû ìîæåòå èñïîëüçîâàòü ñïàíû êàê â ýòîé ôîðìàöèè.
Çäåñü äâå ëèíèè ïåõîòû, 1 ÿ õî÷ó èñïîëüçîâàòü, ÷òîáû ïðîèëëþñòðèðîâàòü êîìàíäó:

begin_formation ai_legion_smallcavalry

        attack

            defend

            ai_priority                                1.0

 

            ;; Legions, first line

            begin_block 0

                        max_units                    8

                        unit_type                      light_pilum_infantry                  1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        10.0

                        priority             1.0

            end_block

 

            ;; Legions, second line

            begin_block 1

                        max_units                    6

                        unit_type                      heavy_pilum_infantry               1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            begin_dummy_block 2

                        spans               0 1

            end_dummy_block

 

            ;; Cavalry, right flank .. AI loves cav. on right!

            begin_block 3

                        max_units                    2

                        unit_type                      heavy cavalry                           1.0

                        unit_type                      light cavalry                             1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       2 24.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.6

            end_block

 

            ;; Dummy block

            begin_block 4

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       2 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Êàê âèäèòå, ïåðâàÿ ëèíèÿ ñîñòîèò èç ëåãêîé ïåõîòû, âòîðàÿ – èç òÿæåëîé.
Âû òî÷íî íå çíàåòå ñîñòàâ àðìèè, êîãäà èñïîëüçóéòå ôîðìàöèþ, òåïåðü, ÷òîáû âêëþ÷èòü â ïîñòðîåíèå êàâàëåðèþ,   âàì äîñòàòî÷íî óêàçàòü åå ðàññòîÿíèå îò ñïàíîâ, à íå ñòàðàòüñÿ ïðèìåðèòü ê êàæäîé ëèíèè ïî îòäåëüíîñòè..
Ñïàíû ïîçâîëÿþò áûñòðî è óäîáíî ðàçìåñòèòü ãåíåðàëà è àðòèëëåðèþ â êàêîé-òî òî÷êå îòíîñèòåëüíî âñåé ôîðìàöèè:

- Áëîê þíèòîâ
Áëîêè þíèòîâ ôàêòè÷åñêè ôîðìèðóþò âñå ôîðìàöèþ, îíè ïîçâîëÿþò àðìèÿì îòëè÷àòüñÿ äðóã îò äðóãà, è îíè âèçóàëüíî âèäíû íà ïîëå áîÿ.
Ñ ýòîãî ìîìåíòà ìîääèíã äåéñòâèòåëüíî íà÷èíàåòñÿ ....

Äëÿ íà÷àëà ÿ ïðåäîñòàâëþ òèïè÷íûé ïðèìåð áëîêà þíèòîâ, êîòîðûé ÷àñòî èñïîëüçóåòñÿ â ðàçëè÷íûõ ôîðìàöèÿõ.

begin_formation ai_dummy_formation

        attack

            defend

            ai_priority                                1.0

 

            ;; Dummy block

            begin_block 0

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Ýòî ïðåêðàñíî ðàáîòàþùàÿ ôîðìàöèÿ, ëó÷øå òîé, êîòîðàÿ èñïîëüçóåòñÿ â ñòàíäàðòíîé âåðñèè èãðû ïîä íàçâàíèåì «ïðîñòàÿ ëèíèÿ».

ß áóäó ïîìå÷àòü êîìàíäó ñëåäóþùèì îáðàçîì:
ñèíèé öâåò-> íåîáõîäèìûå
ñèíèé öâåò ñ êóðñèâîì -> äîïîëíèòåëüíûå

begin_block # Ýòà êîìàíäà ÿâëÿåòñÿ íà÷àëîì áëîêà è äîëæíà áûòü ïðîíóìåðîâàíà, íà÷èíàÿ ñ 0. (Ëîæíûå áëîêè íóìåðóþòñÿ â îäíîì ïîðÿäêå ñ áëîêàìè äëÿ þíèòîâ).

min_units                    1
max_units                   2

Åñëè âû çàõîòèòå, âû ìîæåòå ïîñòàâèòü îïðåäåëåííîå êîëè÷åñòâî þíèòîâ áëîêå è óêàçàòü ìèíèìàëüíûé è ìàêñèìàëüíûé äèàïàçîí.  ýòîì ñëó÷àå â áëîêå áóäåò ñòðîãî îïðåäåëåííîå âàìè êîëè÷åñòâî þíèòîâ. Ìîæíî óêàçàòü â îáîèõ ïàðàìåòðàõ ðàâíîå çíà÷åíèå, òîãäà â áëîêå áóäåò òîëüêî
òî ÷èñëî þíèòîâ. Íî íàäî ïîìíèòü, ÷òî â ôîðìàöèè ìîæåò íå îêàçàòüñÿ ïîäîáíîãî ÷èñëà þíèòîâ, òîãäà îíà íå áóäåò àðàáîòàòü. Òàêæå â ìàêñèìàëüíîì äèàïàçîíå ìîæíî óêàçàòü ÷èñëî 0, êîãäà áëîê ÿâëÿåòñÿ ëèøíèì.

not_general
Ýòà êîìàíäà ïîçâîëÿåò ïðåñå÷ü ïîÿâëåíèå ãåíåðàëà â äàííîì áëîêå. ïîä ãåíåðàëîì ïîäðàçóìåâàåòñÿ îòðÿä, â êîòîðîì íàõîäèòñÿ êîìàíäóþùèé àðìèè.

Áóäüòå âíèìàòåëüíû, êîãäà èñïîëüçóéòå ýòó êîìàíäó. Åñëè îíà íåïðàâèëüíî ðàñïîëîæåíà, îíà ìîæåò ïðè÷èíèòü íåóäîáñòâà.
Íå ñëåäóåò èñïîëüçîâàòü ýòó êîìàíäó â êàæäîì áëîêå, ÷àñòî ãåíåðàë ðàçâåðòûâàåòñÿ âî âòîðóþ è òðåòüþ î÷åðåäü, íî áûâàåò, ÷òî ïåðâûé áëîê óæå çàïîëíåí. Ýòî òðóäíî îáúÿñíèòü, è ïîýòîìó ÿ ïðèâîæó ïðèìåð.

Ýòà ôîðìàöèÿ (íàèáîëåå âåðîÿòíî) ïîìåñòèò âàøåãî ãåíåðàë â  "ëþáîé êâàäðàò", åñëè âû áóäåòå èñïîëüçîâàòü 2 èëè áîëåå îòðÿäà òÿæåëîé êàâàëåðèè

begin_formation ai_small_cavalry

        attack

            defend

            ai_priority                                1.0

 

            ;; Cavalry, first line

            begin_block 0

                        min_units                     1

                        max_units                    1

                        unit_type                      heavy cavalry               1.0

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Cavalry, second line

            begin_block 1

                        not_general

                        unit_type                      heavy cavalry               1.0

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Ýòà ôîðìàöèÿ ðàçìåñòèò þíèòà (íå ãåíåðàëà) à ïåðâóþ î÷åðåäü â ïåðâîì áëîêå,  êîòîðûé çàïîëíåí èç-çà îïåðàòîðà îãðàíè÷åíèÿ þíèòîâ 1 ïîýòîìó èãðà ïûòàåòñÿ ðàçìåñòèòü ãåíåðàëà âî âòîðîì áëîêå, íî òàì ñòîèò îïåðàòîð, íå ïîçâîëÿþùèé ãåíåðàëó òàì îêàçàòüñÿ.  ðåçóëüòàòå ãåíåðàë îòïðàâëÿåòñÿ â ïîñëåäíèé áëîê, íàçûâàåìûé  "ëþáîé êâàäðàò".

Ïîäîáíàÿ ôîðìàöèÿ, íî òåïåðü ðàáî÷àÿ:

begin_formation ai_small_cavalry

        attack

            defend

            ai_priority                                1.0

 

            ;; Cavalry, first line

            begin_block 0

                        max_units                    1

                        unit_type                      heavy cavalry               1.0

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

            ;; Cavalry, second line

            begin_block 1

                        not_general

                        unit_type                      heavy cavalry               1.0

                        unit_density                             close

                        min_unit_width                        20

                        max_unit_width                                   20

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Åñëè âû îáðàòèòå âíèìàíèå íà ïåðâûé áëîê è ðàññìîòðèòå ïðèîðèòåò áëîêà, âû óâèäèòå, ÷òî ÿ åãî ñèëüíî ñíèçèë, òàêæå îïåðàòîð min_units óäàëåí, ïîýòîìó èãðà òàê íå âåäåò ñåáÿ â çàïîëíåíèè áëîêà.
Èãðà ïîìåùàåò ïåðâûé þíèò âî âòîðîé áëîê, â êîíå÷íîì ñ÷åòå, ïîìåùàÿ ãåíåðàëà â ïåðâûé áëîê, òàê êàê ýòî íå ïîçâîëÿåòñÿ ñäåëàòü âî âòîðîì áëîêå, ïîòîìó ÷òî îí çàïîëíÿåòñÿ îñòàâøèìèñÿ þíèòàìè. Îòìå÷ó, ÷òî ýòà êîíêðåòíàÿ ôîðìàöèÿ ïîìåñòèò ãåíåðàëà â «ëþáîé êâàäðàò», åñëè àðìèÿ óâåëè÷èòñÿ äî 10 þíèòîâ, òàê êàê ðàçíèöà â ïðèîðèòåòàõ áëîêà  äàñò ñåáÿ ïî÷óâñòâîâàòü ïðèáëèçèòåëüíî íà 9 èëè 10 þíèòå. Õîòÿ âñå æå ìàëîâåðîÿòíî äëÿ ãåíåðàëà áûòü ðàçâåðíóòûì ïîçæå, ÿ âñå æå îáû÷íî îòìå÷àë òàêîå ÿâëåíèå è ñòàðàëñÿ åãî ïðåäóïðåäèòü.

Ïî ìåíüøåé ìåðå, ñ êîìàíäîé íåò ïðîáëåì ñàìîé ïî ñåáå, íî îíà âñå æå ðàáîòàåò íåìíîãî ïðîáëåìàòè÷íî.  Îáðàòèòå âíèìàíèå íà ñàìóþ ïåðâóþ ôîðìàöèþ â òóòîðå, îíà  ðàñïîëàãàåò ãåíåðàëà â öåíòðàëüíîì áëîêå ñ ïîìîùüþ ñî÷åòàíèÿ îïåðàòîðîâ  min_units, max_units, block-priority, not_general.

unit_type                    any                                         0.1
Ýòîò îïåðàòîð îòîáðàæàåò, êàêîé âèä þíèòà âû õîòèòå ðàçìåñòèòü â êîíêðåòíîì áëîêå è ñ êàêèì ïðèîðèòåòîì. Îòìå÷ó, ÷òî åñëè âû â ïåðâóþ î÷åðåäü ðàçìåñòèòå ëåãêóþ ïåõîòó ñ ïðèîðèòåòîì 0.1,  à çàòåì òÿæåëóþ ïåõîòó ñ ïðèîðèòåòîì 1.0,  êîíå÷íî, òÿæåëîé ïåõîòû áóäåò áîëüøå, íî åñëè èìååòñÿ î÷åíü ìíîãî ëåãêîé ïåõîòû, â ïåðâóþ î÷åðåäü áóäåò ðàçìåùåíà èìåííî îíà. (Åñëè íå õîòèòå ýòîãî, òî íà÷èíàéòå ñ òÿæåëîé ïåõîòû è îêàí÷èâàéòå ëåãêîé). Òàêèì ñïîñîáîì ìîæíî óâåëè÷èòü êîëè÷åñòâî ëåãêîé ïåõîòû â áëîêå, åñëè âû ýòîãî õîòèòå.
Òèïû þíèòîâ, êîòîðûå ìîæíî èñïîëüçîâàòü, ïðîïèñàíû â EDU.  Íàìðèìåð, ýòî   infantry or cavalry, èëè êîìáèíàöèÿ òèïîâ è êëàññîâ þíèòîâ:light infantry or heavy infantry.
Íî ìîæíî ïðîïèñûâàòü òàêæå íåêîòîðûå îñîáåííîñòè þíèòîâ:  phalanx or non_phalanx_spear, èëè àòðèáóò: chanting _screeching

Êàê âèäèòå, óçíàòü òèïû þíèòîâ ìîæíî, ïðîñìàòðèâàÿ âàíèëüíûå ôàéëû.

default_melee_state               fire_at_will_and_defend_and_skirmish
Ïîçâîëÿåò ýôôåêòèâíî íàñòðîèòü ïîâåäåíèå þíèòîâ â áèòâå(ìàêñèìó 3 çíà÷åíèÿ).
Êîãäà àðìèè ðàçâåðíóòû, áîëüøèíñòâî þíèòîâ ïîëó÷àþò ñâîè óñòàíîâêè íà áîé, íàïðèìåð, ëó÷íèêè íà÷èíàþò áîé ñ àêòèâèðîâàííûìè êíîïêàìè «îãîíü ïî æåëàíèþ» è «ïåðåñòðåëêà». Êîãäà âû èñïîëüçóéòå îïåðàòîð default_melee_state  â ïðåäåëàõ áëîêà, â êîòîðîì õîòèòå íàñòðîèòü ýòè ñîñòîÿíèÿ þíèòîâ, èìåéòå â âèäó, ÷òî åñëè âû çàäàëè  ëó÷íèêàì fire_at_will, îíè áîëüøå íå ïåðåñòðåëèâàþòñÿ, ïðîïèøèòå èì  defend, è îíè áîëøå íå âåäóò îãîíü ïî æåëàíèþ è íå ïåðåñòðåëèâàþòñÿ.Èòàê, ÷òîáû çàñòàâèòü ëó÷íèêîâ âûïîëíÿòü âñå 3 ýòè äåéñòâèÿ, âàì íóæíî ïðîïèñàòü fire_at_will_and_defend_and_skirmish. Îòìå÷àþ, ÷òî â äàííîì ñëó÷àå êîìàíäà åùå è àêòèâèðóåò ñïåöèàëüíûå âèäû áîåïðèïàñîâ, åñëè îíè åñòü ó þíèòà.  Îäíàêî, ñëåäóåò åùå ïîìíèòü, ÷òî èãðà â ïðîöåññå áèòâû ìîæåò íà âðåìÿ ïåðåäåëàòü ýòè íàñòðîéêè: âàì, íàâåðíÿêà, ïðèõîäèëîñü âèäåòü â íà÷àëå èãðû ëó÷íèêîâ, ñòðåëÿþùèõ îáû÷íûìè ñòðåëàìè, à ïîòîì çàìåíÿþùèõ èõ îãíåííûìè.

Òàêæå, ìîæíî îòêëþ÷èòü âñå ýòè íàñòðîéêè, åñëè èñïîëüçîâàòü ñïåöèàëüíûå êîìàíäû, êàê ïîêàçàíî çäåñü.  äàííîì ñëó÷àå ëó÷íèêè íå ñòðåëÿþò è äåðæàò ïîçèöèþ.

default_melee_state               dummy
Ýòà êîìàíäà äåëàåò òî æå ñàìîå, ÷òî è:
default_melee_state               anyone_homeetc etc ...

Âàì ñëåäóåò âåñüìà îñòîðîæíî èñïîëüçîâàòü defend, òàê êàê ýòî íåëüçÿ îòêëþ÷èòü, òàêæå ÈÈ íå ìîæåò ïîìåíÿòü íàñòðîéêó âî âðåìÿ áèòâû.  ýòîì ñëó÷àå þíèòû íå àòàêóþò àêòèâíî.
Òàêæå âàì ñëåäóåò çíàòü, ÷òî  default_melee_state íå ðàáîòàåò ïðàâèëüíî â ôîðìàöèÿõ äëÿ èãðîêà.
Íàïîñëåäîê, âñå æå íåâîçìîæíî òî÷íî îïðåäåëèòü, â êàêîé ìîìåíò ÈÈ ïî ñîáñòâåííîé èíèöèàòèâå ìîæåò ïîìåíÿòü íàñòðîéêè äàííîãî ïàðàìåòðà ïî õîäó áèòâû.

unit_formation          square
unit_formation          phalanx
unit_formation          wedge

Ïîòåíöèàëüíî ïîëåçíàÿ êîìàíäà, õîòÿ ÿ íå èñïîëüçóþ åå â ñâîèõ ôîðìàöèÿõ.
Îïåðàòîð ïîçâîëÿåò âàì ïîñòàâèòü þíèò â ñïåöèàëüíîå ïîñòðîåíèå (3 ïðèìåðà âûøå), íî áóäåò áåñïîëåçíà äëÿ òåõ þíèòîâ, êîòîðûå íå îáëàäàþò ñïîñîáíîñòüþ òàê ñòðîèòñÿ.  Òàêæå ìû ïîíèìàåì, ÷òî ÈÈ ïî óìîë÷àíèþ ñòàâèò ôàëàíãèñòîâ â ôàëàíãó, íî êîìàíäà ìîæåò ïðåäîòâðàòèòü íåæåëàòåëüíûé âûõîä þíèòà èç ýòîãî ïîñòðîåíèÿ.
Ïîñòðîåíèå testudo ðàáîòàåò íåêîððåêòíî â ýòîé êîìàíäå, åãî íå ñëåäóåò èñïîëüçîâàòü.

unit_density                close
unit_density                loose

Ïîçâîëÿåò óñòàíîâèòü ïëîòíîñòü ñòðîÿ îòðÿäà. Âîçìîæíî äâà âàðèàíòà: close èëè loose.
Íî ÷àñòî â áèòâå ÈÈ ñàì ìåíÿåò ïëîòíîñòü íà ñâîé âçãëÿä, òàê ÷òî ýòîò ïàðàìåòð ðàáîòàåò ëèøü îò÷àñòè.
Òàê ÿ íå ïûòàëñÿ òåñòèðîâàòü, ìíå íå óäàëîñü òî÷íî óñòàíîâèòü, êîãäà èìåííî ÈÈ ìåíÿåò ïëîòíîñòü îòðÿäà.

min_unit_width                                  20
max_unit_width                                 20

Ñ ïîìîùüþ ýòèõ êîìàíä ìîæíî ðåãóëèðîâàòü øèðèíó ïîñòðîåíèÿ îòðÿäà â çàâèñèìîñòè îò ðàçëè÷íûõ áîåâûõ çàäà÷.

Äàðò Âåéäåð óïîìèíàë  "min_unit_depth" è "max_unit_depth", íî ìíå íå óäàëîñü çàñòàâèòü ýòè êîìàíäû ðàáîòàòü â èãðå.

block_formation                    line
block_formation                    column
block_formation                    square

Ñ ïîìîùüþ ýòèõ 3 âèäîâ ïîñòðîåíèé áëîêîâ âû ìîæåòå ïîñòðîèòü êàæäûé áëîê ïî ñâîåìó. Áîëåå âñåãî èñïîëüçóåòñÿ ïîñòðîåíèå â ëèíèþ, òàê êàê îíî íàèáîëåå ýôôåêòèâíî. Íî èíîãäà áûâàþò ñëó÷àè, êîãäà ìîæåò ïîòðåáîâàòüñÿ è êîëîííà. Êàðå ÷àñòî íîðìàëüíî íå ðàáîòàåò â áîÿõ íà òàêòè÷åñêîé êàðòå.

- Îïðåäåëåíèå ïîçèöèè áëîêà
Ýòà î÷åíü âàæíàÿ êîìàíäà, îò íåå âî ìíîãîì çàâèñèò óñïåøíàÿ ðàáîòà ôîðìàöèè.

Êîãäà âû õîòèòå ðàñïîëîæèòü ñâîþ àðìèþ â áèòâå, ó âàñ åñòü äâà ñïîñîáà ýòî ñäåëàòü:

block_relative_pos       0 0.0 0.0

èëè êîìáèíàöèÿ êîìàíä:

normalised_pos            0.0 0.0

normalised_rot             0.0

Ïåðâûé ñïîñîá ãîðàçäî ëåã÷å è áîëåå ðàñïðîñòðàíåí, âòîðîé ãîðàçäî òðóäíåå è íå âñåãäà àäåêâàòíî ðàáîòàåò.
Âàì ñëåäóåò ïîìíèòü, ÷òî ñëåäóåò âûáèðàòü íà âñþ ôîðìàöèþ òîëüêî îäèí ìåòîä ïîñòðîåíèÿ.  Èíà÷å â òîì ñëó÷àå, åñëè â îäíîì áëîêå âû èñïîëüçóéòå 1 ìåòîä, âî âòîðîì 2, òî èãðà âûëåòèò.

Ìèíèìàëüíûå çíà÷åíèÿ êîìàíä òàêîâû:

normalised_pos            0.0 0.0

normalised_rot             0.0t

Ìàêñèìàëüíûå çíà÷åíèÿ:

normalised_pos            1.0 1.0

normalised_rot             360.0

ß ñàì ïëîõî ïîíèìàþ çíà÷åíèå êîìàíä, íî äàì íåñêîëüêî ïðèìåðîâ, êàê îíè ðàáîòàþò:

begin_formation ai_normalisedstuff_defend

            defend

            ai_priority                                3.0

 

            ;; First line of infantry

            begin_block 0

                        max_units                    3

                        unit_type                      heavy_pilum_infantry               1.0

                        default_melee_state                 fire_at_will_and_defend

                        unit_density                             close

                        block_formation                                  line

                        normalised_pos                       0.0 0.0

                        normalised_rot             0.0

                        inter_unit_spacing        6.0

                        priority             1.0

            end_block

 

            ;; Second line of infantry

            begin_block 1

                        max_units                    2

                        unit_type                      heavy_pilum_infantry               1.0

                        default_melee_state                 fire_at_will_and_defend

                        unit_density                             close

                        block_formation                                  line

                        normalised_pos                       0.0 0.0

                        normalised_rot             0.0

                        inter_unit_spacing        6.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        normalised_pos                       0.0 0.0

                        normalised_rot             0.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Ïîñìîòðèòå, ãäå àðìèè ðàçâåðíóòû îòíîñèòåëüíî öåíòðà ðàçâåðòûâàíèÿ.

è

begin_formation ai_normalisedstuff_defend

            defend

            ai_priority                                3.0

 

            ;; First line of infantry

            begin_block 0

                        max_units                    3

                        unit_type                      heavy_pilum_infantry               1.0

                        default_melee_state                 fire_at_will_and_defend

                        unit_density                             close

                        block_formation                                  line

                        normalised_pos                       0.6 0.6

                        normalised_rot             45.0

                        inter_unit_spacing        6.0

                        priority             1.0

            end_block

 

            ;; Second line of infantry

            begin_block 1

                        max_units                    2

                        unit_type                      heavy_pilum_infantry               1.0

                        default_melee_state                 fire_at_will_and_defend

                        unit_density                             close

                        block_formation                                  line

                        normalised_pos                       0.0 0.0

                        normalised_rot             45.0

                        inter_unit_spacing        6.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        normalised_pos                       0.0 0.0

                        normalised_rot             45.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Îïÿòü, àðìèè íàõîäÿòñÿ â öåíòðå ïîñòðîåíèÿ, íî ýòî íå ïðîèçâåëî ïîâîðîòà.

Íå èñïîëüçóéòå ïîäîáíûå çíà÷åíèÿ â  normalised_pos  except for 0.0 0.0, åñëè âû íå õîòèòå ñëîìàòü ôîðìàöèþ.

block_relative_pos    0 0.0 0.0
ß ñ÷èòàþ, ÷òî ýòà ñàìàÿ âàæíàÿ êîìàíäà â ìîääèíãå ôîðìàöèé.
Ýòà êîìàíäà ïîçâîëÿåò âàì ðàñïîëàãàòü áëîê îòíîñèòåëüíî äðóãèõ áëîêîâ âî âñåõ íàïðàâëåíèÿõ. Îáúÿñíåíèå ìîæåòå âçÿòü â ñàìîì ôàéëå.
Ïåðâàÿ öèôðà â êîìàíäå îáîçíà÷àåò, îòíîñèòåëüíî êàêîãî áëîêà áóäåò âåñòèñü îðèåíòèðîâàíèå áëîêà, òî åñòü îòíîñèòåëüíî êîòîðîãî îí áóäåò ðàñïîëàãàòüñÿ. Âòîðàÿ ïàðà öèôð îáîçíà÷àåò ïåðåìåùåíèå âëåâî èëè âïðàâî îòíîñèòåëüíî áëîêà. Äëÿ ïåðåìåùåíèÿ âïðàâî íóæíî ïîñòàâèòü çíàê -. Âòîðàÿ ïàðà îáîçíà÷àåò ïåðåìåùåíèå âçàä è âïåðåä. Äëÿ ïåðåìåùåíèÿ âçàä íóæíî ïîñòàâèòü çíàê-.
Âîò ïåðâûé ïðèìåð:
block_relative_pos    2 -4.0 5.0
 äàííîì ñëó÷àå áëîê áóäåò ðàñïîëàãàòüñÿ îòíîñèòåëüíî âòîðîãî áëîêà íà 4 ìåòðà âïðàâî è íà 5 âïåðåä.

ß ïðîèëëþñòðèðóþ ýòó êîìàíäó åùå íåñêîëüêèìè ïðèìåðàìè.

begin_formation ai_position_defend1

            defend

            ai_priority                                2.0

 

            supported_factions romans_julii

 

            ;; Legions

            begin_block 0

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Cavalry

            begin_block 1

                        unit_type                      heavy cavalry                           1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.9

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Ñëåäóþùàÿ:

begin_formation ai_position_defend2

            defend

            ai_priority                                2.0

 

            supported_factions romans_brutii

 

            ;; Legions

            begin_block 0

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Cavalry

            begin_block 1

                        unit_type                      heavy cavalry                           1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 -12.0 0.0

                        inter_unit_spacing        2.0

                        priority             0.9

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Òåïåðü òàêàÿ:

begin_formation ai_position_defend3

            defend

            ai_priority                                2.0

 

            supported_factions romans_scipii

 

            ;; Legions

            begin_block 0

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Cavalry

            begin_block 1

                        unit_type                      heavy cavalry                           1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 -12.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.9

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

inter_unit_spacing     2.0
Ýòà êîìàíäà ïîçâîëÿåò ïîñòàâèòü ïðîìåæóòîê ìåæäó þíèòàìè â îäíîì áëîêå. Íàïðèìåð, âàøè âîéñêà â îäíîì áëîêå ñòîÿò â ëèíèþ, è â ýòîì ñëó÷àå ðàññòîÿíèå ìåæäó íèìè áóäåò ðàâíÿòüñÿ 2 ìåòðàì.

priority                       1.0
Ýòî ïîñëåäíÿÿ êîìàíäà, áåç êîòîðîé íå ìîæåò îáîéòèñü íè îäèí áëîê. Îíà ïîçâîëÿåò óñòàíîâèòü ïðèîðèòåò äëÿ êàæäîãî áëîêà âíóòðè ôîðìàöèè.

 ýòîé ôîðìàöèè ïåðâàÿ ëèíèÿ áóäåò çàïîëíÿòüñÿ  10  þíèòàì äî ðàçìåùåíèÿ þíèòîâ âî âòîðîé ëèíèè, max_units ïðåäîòâðàùàåò ðàçìåùåíèå ëèøíèõ þíèòîâ â ïåðâîé ëèíèè.

begin_formation ai_priority_defend

            defend

            ai_priority                                2.0

 

            ;; Legions

            begin_block 0

                        max_units                    10

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Legions

            begin_block 1

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        12.0

                        priority             0.1

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Òåïåðü îáñóäèì äðóãîé ñïîñîá ðàáîòû ñ ïðèîðèòåòàìè. ÿ ïîêàæó íåñêîëüêî ïðèìåðîâ.
ß ïîêàæó âàì äâå ôîðìàöèè, êàæäàÿ èç êîòîðûõ ñîäåðæèò ëèíèþ êàâàëåðèè è ëèíèþ ïåõîòû, ïîêà æå ÿ õîäó, ÷òîáû â ïåðâîé áûëà ïðåèìóùåñòâåííî ïåõîòà, à âî âòîðîé – êàâàëåðèÿ. Ïîíàáëþäàéòå, êàê ÿ áóäó ìåíÿòü ïðèîðèòåòû.

Ïåðâàÿ ôîðìàöèÿ: ó ïåõîòû âûñîêèé ïðèîðèòåò, ó êàâàëåðèè ïîìåíüøå

begin_formation ai_priority_infantry

            defend

            ai_priority                                2.0

 

            ;; Legions

            begin_block 0

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Cavalry

            begin_block 1

                        unit_type                      heavy cavalry                           1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.6

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

 ýòîé ôîðàöèè ïåõîòà äîìèíèðóåò íàä êàâàëåðèåé. Ïðèìåð íà êàðòèíêå:

Òåïåðü æå ÿ èçìåíþ ïðèîðèòåòû: êàâàëåðèÿ ïîëó÷èò âûñîêèé ïðèîðèòåò, à ïåõîòà – ìàëåíüêèé.

begin_formation ai_priority_cavalry

            defend

            ai_priority                                2.0

 

            ;; Legions

            begin_block 0

                        unit_type                      heavy_pilum_infantry               1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             0.6

            end_block

 

            ;; Cavalry

            begin_block 1

                        unit_type                      heavy cavalry                           1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 -24.0 -12.0

                        inter_unit_spacing        2.0

                        priority             1.0

            end_block

 

            ;; Dummy block

            begin_block 2

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       1 0.0 -18.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Òåïåðü â ôîðìàöèè áîëüøå êàâàëåðèè, ÷åì ïåõîòû

ß ïîêàçàë âàì ïðèìåðû, êàê òîëüêî ñ ïîìîùüþ ïðèîðèòåòîâ ìîæíî çàñòàâèòü èãðó ñîçäàâàòü èç ïî÷òè îäèíàêîâûõ ôîðìàöèé ñîâåðøåííî ðàçíûå ïî ïîñòàâó âîéñê. Òàê ìîæíî äåëàòü ïðàêòè÷åñêè ñ êàæäîé ôîðìàöèè.

end_block
ýòà êîìàíäà îêàí÷èâàåò êàæäûé áëîê. Îíà îçíà÷àåò, ÷òî â áëîê çàêîí÷åí è áîëüøå íå íóæäàåòñÿ â èçìåíåíèÿõ.

-Formation for a full Roman army
Òåïåðü, äëÿ çàêëþ÷åíèÿ, ÿ ïðîäåìîíñòðèðóþ ïðîñòóþ ôîðìàöèþ äëÿ öåëîé ðèìñêîé àðìèè.

begin_formation ai_full_legion

        attack

            defend

            ai_priority                                1.0

 

            ;; First line of infantry

            begin_block 0

                        unit_type                      light_pilum_infantry                  1.0

                        unit_type                      heavy_pilum_infantry               0.9

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 0.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Second line of infantry left

            begin_block 1

                        max_units                    1

                        unit_type                      heavy_pilum_infantry               0.9

                        unit_type                      light_pilum_infantry                  0.1

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       0 0.0 -12.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Spearmen

            begin_block 2

                        unit_type                      spearmen                                 1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       1 0.0 -12.0

                        inter_unit_spacing        18.0

                        priority             1.0

            end_block

 

            ;; Achers, behind the other infantry

            begin_block 3

                        unit_type                      ranged_missile_infantry                        1.0

                        default_melee_state                 fire_at_will_and_defend_and_skirmish

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       2 0.0 -6.0

                        inter_unit_spacing        3.0

                        priority             1.0

            end_block

 

            ;; Elephants

            begin_block 4

                        unit_type                      elephants                                 1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       3 0.0 -6.0

                        inter_unit_spacing        12.0

                        priority             0.8

            end_block

 

            begin_dummy_block 5

                        spans  0 1 2 3 4

            end_dummy_block

 

            ;; Siege equipment

            begin_block 6

                        unit_type                      siege                                        1.0

                        default_melee_state                 fire_at_will

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       5 0.0 -12.0

                        inter_unit_spacing        6.0

                        priority             0.2

            end_block

 

            ;; Generals unit

            begin_block 7

                        min_units                     1

                        unit_type                      general_unit                             1.0

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       6 0.0 -12.0

                        inter_unit_spacing        12.0

                        priority             1.0

            end_block

 

            ;; Cavalry, left wing

            begin_block 8

                        unit_type                      heavy cavalry                           1.0

                        unit_type                      light cavalry                             0.9

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       5 -24.0 -6.0

                        inter_unit_spacing        2.0

                        priority             0.9

            end_block

 

            ;; Cavalry, right wing

            begin_block 9

                        unit_type                      heavy cavalry                           1.0

                        unit_type                      light cavalry                             0.9

                        unit_density                             close

                        block_formation                                  line

                        block_relative_pos       5 24.0 -6.0

                        inter_unit_spacing        2.0

                        priority             0.9

            end_block

 

            ;; Dummy block

            begin_block 10

                        unit_type                      any                                          0.1

                        unit_density                             close

                        block_formation                                  square

                        block_relative_pos       7 0.0 -12.0

                        inter_unit_spacing        2.0

                        priority             0.1

            end_block

 

end_formation

Íà ýòîì è çàêîí÷èì ðàçãîâîð î ôîðìàöèÿõ äëÿ ÈÈ.

Äîïîëíèòåëüíàÿ èíôîðìàöèÿ ïî ôîðìàöèÿì.
-Òèï þíèòà

Òèïû þíèòîâ, êîòîðûå ìîæíî èñïîëüçîâàòü â âàíèëüíîì formations_ai:

any

infantry

light infantry

heavy infantry

pilum_infantry

light_pilum_infantry

heavy_pilum_infantry

spearmen

spearmen infantry

non_phalanx_spear

phalanx

missile infantry

skirmish infantry

ranged_missile_infantry

cavalry

spearmen cavalry

heavy cavalry

light cavalry

missile cavalry

skirmish cavalry

elephants

heavy_chariots

handler

siege

general_unit

chanting_screeching

swimming

carrying_siege_engine ram

carrying_siege_engine ladder

carrying_siege_engine tower

Ôîðìàöèè äëÿ èãðîêà
Çäåñü ÿ ïîñòàðàþñü îáúÿñíèòü íåêîòîðûå îòëè÷èÿ ìåæäó ÈÈ ôîðìàöèÿìè è ôîðìàöèÿìè äëÿ èãðîêà.

 ïåðâóþ î÷åðåäü, íåëüçÿ äîáàâëÿòü â ôîðìàöèè äëÿ èãðîêà íåîãðàíè÷åííîå êîëè÷åñòâî ôîðìàöèé, âñåãî ñóùåñòâóåò âîñåìü 8 ôîðìàöèé (ñòîëüêî æå è êíîïîê ôîðìàöèé) è îäíà äîïîëíèòåëüíàÿ ôîðìàöèÿ.

-Íàçâàíèÿ ôîðìàöèè
Íàñêîëüêî ÿ ïîíèìàþ, êàæäàÿ ôîðìàöèÿ ñâÿçàíà ñ êíîïêàìè íà èíòåðôåéñå ïîñðåäñòâîì ñëåäóþùèõ äîñòóïíûõ â ôàéëå íàçâàíèé ôîðìàöèé:

simple_line

ordered_single_line

simple_double_line

ordered_double_line

ordered_triple_line_1

ordered_triple_line_2

ordered_triple_line_3

column

- Âûáîð þíèòà
Ïîñëåäíÿÿ ôîðìàöèÿ èñïîëüçóåòñÿ, êîãäà âû ïåðåìåùàéòå èëè ðàñòÿãèâàéòå ìûøüþ íåñêîëüêî þíèòîâ (íåîáÿçàòåëüíî, ÷òîáû îíè áûëè ñãðóïïèðîâàíû).

-Öåëü è ïðèîðèòåò
Öåëü è ïðèîðèòåò íå èñïîëüçóþòñÿ ôîðìàöèÿõ äëÿ èãðîêà, ïîñêîëüêó âû ñàìè âûáèðàåòå ñåáå ôîðìàöèþ.

-default_melee_state
Ïîñëå áîëüøîãî êîëè÷åñòâà ïðîâåäåííûõ òåñòîâ óäàëîñü ïîíÿòü, ÷òî ýòà êîìàíäà ëèáî íåàäåêâàòíî ðàáîòàåò â ôîðìàöèÿõ äëÿ èãðîêà, ëèáî ïðèâîäèò ê âûëåòó. Ëó÷øå åå íå èñïîëüçîâàòü.

-Íåñêîëüêî ïðèìå÷àíèé ïî èñïîëüçîâàíèþ ôîðìàöèé äëÿ èãðîêà.
Êîãäà âû áóäåòå äåëàòü âûáîðî÷íûå ôîðìàöèè äëÿ èãðîêà, âû ìîæåòå èñïîëüçîâàòü êîìàíäû, òàêèå êàê   min_units è max_units. È êîëè÷åñòâî þíèòîâ íå áóäåò ñîîòâåòñòâîâàòü ýòîìó óñëîâèþ â ôîðìàöèè, òî èãðà ìîæåò ñàìà ñîáîé âñòàâèòü «ëèøíèå» þíèòû â áëîê. Íàïðèìåð, âû ñîçäàëè áëîê äëÿ ïåõîòû ñ ìàêñèìóìîì â 3 þíèòà, à âûáðàëè áîëüøå 3. Òîãäà èãðà ìîæåò ñàìà âñòàâèòü ýòè þíèòû â áëîê.
Òàêæå íóæíî ïîìíèòü, â ôîðìàöèÿõ äëÿ èãðîêà íå ñëåäóåò èçìåíÿòü íàçâàíèå ôîðìàöèè, ýòî ìîæåò ïðèâåñòè ê âûëåòó.
Íàïîñëåäîê ïðåäîñòàâëþ ñïèñîê «íàçíà÷åíèÿ» ôîðìàöèé, êîòîðûå òàêæå íå ñëåäóåò ìåíÿòü. Îí íàõîäèòñÿ ñðàçó ïîñëå íàçâàíèÿ ôîðìàöèè.

general_order Group_Formation_Single_Line

general_order Group_Formation_Sorted_Line

general_order Group_Formation_Sorted_Double_Line

general_order Group_Formation_Sorted_Double_Line

general_order Group_Formation_Missile_First_3_lines

general_order Group_Formation_Infantry_First_3_Lines

general_order Group_Formation_Cavalry_First_3_Lines

general_order Group_Formation_Column

 

© Ïåðåâîä òóòîðà - hick09.
©Çàïðåùàåòñÿ ëþáàÿ ïåðåïå÷àòêà è êîïèðîâàíèå áåç ñîãëàñèÿ  Internetwars.ru .