Задумка: автокаст стрелы наносит урон дополнительным целям в конусе перед атакующим. Абилка и баф сделаны на основе Black arrow.
Эффекта в игре 0. Не понимаю, где накосячил, прошу помочь (версия игры - последняя).
Hash
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set VariableSet hashTable = (Last created hashtable)
Set VariableSet QSConeRadius = 450.00
Set VariableSet QSSplashdamage = 8.00
Set VariableSet QSSplashtargets = 3
Триггер:
Стена текста
Events
Game - DamageEvent becomes Equal to 1.00
Conditions
(DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True
(Level of Black Arrow (quilboar) for DamageEventSource) Greater than 0
(DamageEventTarget has buff Quilspray ) Equal to True
Actions
Unit - Remove Quilspray buff from DamageEventTarget
Set VariableSet QSCasterPoint = (Position of DamageEventSource)
Set VariableSet QSTargetGroup = (Units within QSConeRadius of QSCasterPoint matching ((((Matching unit) belongs to an enemy of (Owner of DamageEventSource).) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to DamageEventTarget))).)
Unit Group - Remove all units from QSConeGroup.
Unit Group - Pick every unit in QSTargetGroup and do (Actions)
Loop - Actions
Set VariableSet QSAngle = (Angle from QSCasterPoint to (Position of (Picked unit)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Abs((QSAngle - (Facing of DamageEventSource)))) Less than or equal to 45.00
Then - Actions
Unit Group - Add (Picked unit) to QSConeGroup
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Abs((QSAngle - ((Facing of DamageEventSource) - 360.00)))) Less than or equal to 45.00
Then - Actions
Unit Group - Add (Picked unit) to QSConeGroup
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Abs((QSAngle - ((Facing of DamageEventSource) + 360.00)))) Less than or equal to 45.00
Then - Actions
Unit Group - Add (Picked unit) to QSConeGroup
Else - Actions
Set VariableSet QSCounter = 0
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
QSCounter Less than QSSplashtargets
Then - Actions
Set VariableSet QSTargetUnit = (Picked unit)
Unit - Cause DamageEventSource to damage QSTargetUnit, dealing QSSplashdamage damage of attack type Spells and damage type Normal
Set VariableSet QSCounter = (QSCounter + 1)
Else - Actions
Skip remaining actions
Special Effect - Create a special effect at (Position of QSTargetUnit) using Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_QSCasterPoint)
Custom script: call DestroyGroup(udg_QSTargetGroup)
Custom script: call DestroyGroup(udg_QSConeGroup)
`
ОЖИДАНИЕ РЕКЛАМЫ...
14
Код нечитаемый: табуляции нет, строчек лишних много, еще и не в ``` засунуто. Лучше кинь скрин со своими гуями.
Называть тригоры "Untitled Trigger 001", кек)))
16
IzobretatelBoom, скрин гуи прикрепил к вопросу, остальное скрыл под катом, спасибо за замечание!
Чтобы оставить комментарий, пожалуйста, войдите на сайт.