- Joined
- May 11, 2012
- Messages
- 2,103
how can I make this spell lasts 10 seconds?
here it is:
here it is:
-
Scorched Earth
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Fan of Knives
-
Actions
- Set ScorchedEarth_Trig_Unit = (Triggering unit)
- Set Damage[1] = 1500.00
- Set Damage[2] = (1000.00 x ((Real((Agility of ScorchedEarth_Trig_Unit (Include bonuses)))) / 100.00))
- Set Damage_Integer = (Level of Fan of Knives for ScorchedEarth_Trig_Unit)
- Trigger - Turn on Scorched Earth Loop <gen>
-
Events
-
Scorched Earth Loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set Temp_Point = (Position of ScorchedEarth_Trig_Unit)
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
- Set FirePoint = (Temp_Point offset by 100.00 towards (18.00 + (72.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at FirePoint using Environment\SmallBuildingFire\SmallBuildingFire2.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_FirePoint)
-
Loop - Actions
-
For each (Integer A) from 6 to 15, do (Actions)
-
Loop - Actions
- Set FirePoint = (Temp_Point offset by 250.00 towards (54.00 + (36.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at FirePoint using Environment\SmallBuildingFire\SmallBuildingFire2.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_FirePoint)
-
Loop - Actions
-
For each (Integer A) from 16 to 35, do (Actions)
-
Loop - Actions
- Set FirePoint = (Temp_Point offset by 500.00 towards (72.00 + (18.00 x (Real((Integer A))))) degrees)
- Special Effect - Create a special effect at FirePoint using Environment\SmallBuildingFire\SmallBuildingFire2.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_FirePoint)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Set Unit_Group = (Units within 500.00 of (Position of ScorchedEarth_Trig_Unit))
-
Unit Group - Pick every unit in Unit_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) belongs to an enemy of (Owner of Trig_Unit)) Equal to True) and ((((Picked unit) is alive) Equal to True) and (((Picked unit) is dead) Equal to False))
-
Then - Actions
- Unit - Cause ScorchedEarth_Trig_Unit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
- Custom script: call DestroyGroup(udg_Unit_Group)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Else - Actions
- Custom script: call RemoveLocation(udg_Temp_Point)
-
Events