Форум HeroesWorld-а - Показать сообщение отдельно - Как изменить юнита?
Показать сообщение отдельно
#29
Старый 15.09.2023, 17:41
  #29
^
Waterfall_13
 
Аватар для Waterfall_13
📖
Регистрация: 31.03.2020
Адрес: Крым
Сообщения: 811
Waterfall#7225
Регистрация: 31.03.2020
Адрес: Крым
Сообщения: 811
Waterfall#7225
По умолчанию
Re: Как изменить юнита?

Измаилони в стрелковом бою атакуют сразу все подразделения и машины противника
Буду признателен за помощь

Ну теоретически в виде костыля можно прописать паттерн атаки на все клетки... но я такого никогда не делал и не знаю работает ли оно.
Посмотри Spread Attack у дриад и расширь количество клеток атаки на нужное тебе количество клеток по осям Х и У.

AcidBreath в папке существ GameMechanics.


<?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>
Waterfall_13 сейчас на форуме
Ответить с цитированием