Solu9
You can change this now in User CP.
- Reaction score
- 216
SOLVED
Hey peps.
My spell is supposed to shoot out 4 Chain Lightnings at four random targets in the area. I have found a way to make it work but my initial try didn't and I wonder why.
The trigger only fires 1 Chain Lightning instead of 4.
Here is the trigger that does NOT work.
And here is the trigger that DO work if I make four independent triggers.
4x
As I said I would like to know why the first trigger wont work.
Hey peps.
My spell is supposed to shoot out 4 Chain Lightnings at four random targets in the area. I have found a way to make it work but my initial try didn't and I wonder why.
The trigger only fires 1 Chain Lightning instead of 4.
Here is the trigger that does NOT work.
Trigger:
- Electricity Blast
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Electricity Blast
- Actions
- For each (Integer A) from 1 to 4, do (Actions)
- Loop - Actions
- Set Temp_Point1 = (Position of (Casting unit))
- Set Temp_UnitGroup1 = (Random 1 units from (Units within 700.00 of Temp_Point1 matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is alive) Equal to True))))
- Unit - Create 1 Electricity Blast Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Random unit from Temp_UnitGroup1)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call DestroyGroup (udg_Temp_UnitGroup1)
- Custom script: call RemoveLocation (udg_Temp_Point1)
And here is the trigger that DO work if I make four independent triggers.
4x
Trigger:
- Electricity Blast 1
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Electricity Blast
- Actions
- Set Temp_Point1 = (Position of (Casting unit))
- Set Temp_UnitGroup1 = (Random 1 units from (Units within 700.00 of Temp_Point1 matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is alive) Equal to True))))
- Unit - Create 1 Electricity Blast Dummy Unit for (Owner of (Casting unit)) at Temp_Point1 facing Default building facing degrees
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Random unit from Temp_UnitGroup1)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call DestroyGroup (udg_Temp_UnitGroup1)
- Custom script: call RemoveLocation (udg_Temp_Point1)
As I said I would like to know why the first trigger wont work.