- Joined
- Apr 5, 2018
- Messages
- 116
Which thing I do wrong? I have other trigger for golden barrel of explosives with 6666 damage and BOOM variable.
It is possible triggers conflict? If I try this on other map it is work.
You can try to get some complex system (I recall someone already wrote it, check Spell Section) to specify this additional behavior.
-
Boom
-
Events
-
Destructible - A destructible within (Playable map area) dies
-
-
Conditions
-
(Destructible-type of (Dying destructible)) Equal to Barrel of Explosives
-
-
Actions
-
Set VariableSet BOOM = (Position of (Dying destructible))
-
Destructible - Pick every destructible within 250.00 of BOOM and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Picked destructible)) Equal to Barrel of Explosives
-
-
Then - Actions
-
Destructible - Kill (Picked destructible)
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 250.00 of BOOM.) and do (Actions)
-
Loop - Actions
-
Unit - Cause (Picked unit) to damage (Picked unit), dealing 2000.00 damage of attack type Spells and damage type Normal
-
-
-
Custom script: call RemoveLocation(udg_BOOM)
-
-
It is possible triggers conflict? If I try this on other map it is work.
This is soft-locked into AI behavior. It cannot be altered.When the AI uses the ability it either doesn't use it at all, OR it uses it on it's own units (Thinking it's a heal) instead of targeting enemy units.
You can try to get some complex system (I recall someone already wrote it, check Spell Section) to specify this additional behavior.