Ok well I've been working on a blackhole spell, but I can't get this working properly...
Its Serpent Ward remade to summon a blackhole, when the blackhole is spawned its supposed to order it to cast its version of locust (different units etc). A dummy unit is spawned at the blackhole's location and channels earthquake on it. Then every 2.5 seconds a dimensional walker is spawned in a random radius within 700 area of the blackhole.
So far none of it is working...
Its Serpent Ward remade to summon a blackhole, when the blackhole is spawned its supposed to order it to cast its version of locust (different units etc). A dummy unit is spawned at the blackhole's location and channels earthquake on it. Then every 2.5 seconds a dimensional walker is spawned in a random radius within 700 area of the blackhole.
So far none of it is working...
Code:
Blackhole
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to BlackHole
Actions
Set BlackHoleUnit[(Player number of (Owner of (Summoned unit)))] = (Summoned unit)
Countdown Timer - Start BlackHoleTimer[(Player number of (Owner of (Summoned unit)))] as a One-shot timer that will expire in 30.00 seconds
Unit - Order (Summoned unit) to Undead Crypt Lord - Locust Swarm
Set Point = (Position of (Summoned unit))
Unit - Create 1 Dummy for (Owner of (Summoned unit)) at Point facing Default building facing degrees
Unit - Add BlackHole - Earthquake to (Last created unit)
Unit - Order (Last created unit) to Orc Far Seer - Earthquake Point
Unit - Add a 33.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_Point)
Trigger - Turn on BlackHole Spawns <gen>
Trigger - Add to BlackHole Spawns <gen> the event (Time - BlackHoleSpawn[(Player number of (Owner of (Summoned unit)))] expires)
Countdown Timer - Start BlackHoleSpawn[(Player number of (Owner of (Summoned unit)))] as a One-shot timer that will expire in 2.50 seconds
Code:
BlackHole Spawns
Events
Conditions
Actions
For each (Integer BlackHoleCheck) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Remaining time for BlackHoleSpawn[BlackHoleCheck]) Less than or equal to 0.00
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Remaining time for BlackHoleTimer[BlackHoleCheck]) Greater than 0.00
Then - Actions
Set Point = (Position of BlackHoleUnit[BlackHoleCheck])
Set Region = (Region centered at Point with size (700.00, 700.00))
Custom script: call RemoveLocation(udg_Point)
Set Point = (Random point in Region)
Custom script: call RemoveRect(udg_Region)
Unit - Create 1 Dimensional Walker for (Player(BlackHoleCheck)) at Point facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to (Hero level of Heros[BlackHoleCheck]), Hide level-up graphics
Hero - Disable experience gain for (Last created unit)
Custom script: call RemoveLocation(udg_Point)
Countdown Timer - Start BlackHoleSpawn[BlackHoleCheck] as a One-shot timer that will expire in 2.50 seconds
Else - Actions
Else - Actions