Skip to content

How do I change a unit?

User Avatar
#30
Auto-translated
Ishmael
in ranged combat they attack all enemy units and war machines at once
I would be grateful for help

Well, theoretically you could write an attack pattern covering all cells as a workaround... but I've never done that myself and don't know if it works.
Look at Spread Attack for the Dryads and expand the number of attack cells to however many you need along the X and Y axes.

AcidBreath is in the GameMechanics creature folder.

<?xml version="1.0" encoding="UTF-8"?>
<PatternAttack>
    <Patterns>
                <Item>
                    <cells>
                        <Item>
                            <x>1</x>
                            <y>0</y>
                        </Item>
                        <Item>
                            <x>2</x>
                            <y>0</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>1</x>
                            <y>1</y>
                        </Item>
                        <Item>
                            <x>2</x>
                            <y>2</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>0</x>
                            <y>1</y>
                        </Item>
                        <Item>
                            <x>0</x>
                            <y>2</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-1</x>
                            <y>1</y>
                        </Item>
                        <Item>
                            <x>-1</x>
                            <y>2</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-2</x>
                            <y>1</y>
                        </Item>
                        <Item>
                            <x>-3</x>
                            <y>2</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-2</x>
                            <y>0</y>
                        </Item>
                        <Item>
                            <x>-3</x>
                            <y>0</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-2</x>
                            <y>-1</y>
                        </Item>
                        <Item>
                            <x>-3</x>
                            <y>-1</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-2</x>
                            <y>-2</y>
                        </Item>
                        <Item>
                            <x>-3</x>
                            <y>-3</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>-1</x>
                            <y>-2</y>
                        </Item>
                        <Item>
                            <x>-1</x>
                            <y>-3</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>0</x>
                            <y>-2</y>
                        </Item>
                        <Item>
                            <x>0</x>
                            <y>-3</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>1</x>
                            <y>-2</y>
                        </Item>
                        <Item>
                            <x>2</x>
                            <y>-3</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
                <Item>
                    <cells>
                        <Item>
                            <x>1</x>
                            <y>-1</y>
                        </Item>
                        <Item>
                            <x>2</x>
                            <y>-1</y>
                        </Item>
                    </cells>
                    <AngleRotateTo>0</AngleRotateTo>
                </Item>
            </Patterns>
    <RotateToMainTarget>true</RotateToMainTarget>
    <DamageToMainTargetCoefficient>1</DamageToMainTargetCoefficient>
    <DamageToOtherTargetsCoefficient>1</DamageToOtherTargetsCoefficient>
    <DamageAll>false</DamageAll>
</PatternAttack>
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation