- Joined
- Feb 18, 2007
- Messages
- 216
So i'm making Artillery Strike spell but i have one problem with it. I have created cluster rocket based dummy spell and rain of fire based castable spell.
Here's a trigger:
This is the map if someone wants to try fix it. The purple commander has the spell.
View attachment ArtilleryStrikeTest.w3x
Here's a trigger:
-
ArtilleryStrike
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Artillery Strike
-
Actions
- Region - Center ArtilleryStrike <gen> on (Target point of ability being cast)
-
Events
-
ArtilleryStrike2
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Artillery Strike
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Artillery Strike for (Triggering unit)) Equal to 3
-
Then - Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
- Unit - Create 1 DummyCaster for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees
- Set DummyCaster = (Last created unit)
- Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets (Center of ArtilleryStrike <gen>)
-
Loop - Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Artillery Strike for (Triggering unit)) Equal to 2
-
Then - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
- Unit - Create 1 DummyCaster for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees
- Set DummyCaster = (Last created unit)
- Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets (Center of ArtilleryStrike <gen>)
-
Loop - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Artillery Strike for (Triggering unit)) Equal to 1
-
Then - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
- Unit - Create 1 DummyCaster for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees
- Set DummyCaster = (Last created unit)
- Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets (Center of ArtilleryStrike <gen>)
-
Loop - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
- Wait 1.00 seconds
- Unit - Remove DummyCaster from the game
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
This is the map if someone wants to try fix it. The purple commander has the spell.
View attachment ArtilleryStrikeTest.w3x
Last edited: