Need Help with Trigger Spell

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
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...
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
 

Flare

Stops copies me!
Reaction score
662
does your dummy have enough mana?

Code:
Trigger - Add to BlackHole Spawns <gen> the event (Time - BlackHoleSpawn[(Player number of (Owner of (Summoned unit)))] expires)

if the same player uses the ability again, your adding the exact same event again, so the trigger will fire repeatedly (for every event that occured) i.e. if you cast the spell again, 45 seconds after the first cast, you will spawn 2 units since the same timer is expiring, but the game is registering both events.
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
All the spells (except the one casted by the void walker to summon the blackhole) cost 0 mana.

I make sure every spell the dummy unit uses cost no mana. But the blackhole didn't cast its spell either.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top