- Joined
- Jun 1, 2009
- Messages
- 137
Hi! I'm trying to create a unit, which applies Alchemist's acid bomb on death to nearby units (reminds banelings from SC2)
The problem is Dummy Unit refuses to cast it.
Here is the trigger:
- dummy unit has no magic immunity\invulnerability (based on human worker)
- expiration timer still applies, so trigger must work.
- Acid Bomb spell allowed targets: ground, air, enemy, friend, self, not self, structure, mechanics, organic, dead, alive.
- can apply this spell manually and it works fine.
Upd: Just've find out that tigger doesn't work only with computer players. Any ideas how to fix it ?
The problem is Dummy Unit refuses to cast it.
Here is the trigger:
-
Unit Dies
-

Events
-


Unit - A unit owned by Player 12 (Brown) Dies
-
-

Conditions
-

Actions
-


-------- TEST --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Dying unit)) Equal to Fel Guard
-
-



Then - Actions
-




Set VariableSet TempPoint[0] = (Position of (Dying unit))
-




Unit - Create 1 Dummy for Player 12 (Brown) at TempPoint[0] facing Default building facing degrees
-




Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb (Last created unit)
-




Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-




Custom script: call RemoveLocation(udg_TempPoint[0])
-
-



Else - Actions
-
-
-
-
TEST Slam
-

Events
-


Player - Player 1 (Red) types a chat message containing -test as A substring
-
-

Conditions
-

Actions
-


Set VariableSet TempPoint[1] = (Center of Region 180 <gen>)
-


Unit - Create 1 Fel Guard for Player 12 (Brown) at TempPoint[1] facing Default building facing degrees
-


Unit - Kill (Last created unit)
-


Custom script: call RemoveLocation(udg_TempPoint[1])
-
-
- dummy unit has no magic immunity\invulnerability (based on human worker)
- expiration timer still applies, so trigger must work.
- Acid Bomb spell allowed targets: ground, air, enemy, friend, self, not self, structure, mechanics, organic, dead, alive.
- can apply this spell manually and it works fine.
Upd: Just've find out that tigger doesn't work only with computer players. Any ideas how to fix it ?
Last edited:


