Dark Portal ability

Status
Not open for further replies.
Level 10
Joined
Jun 13, 2010
Messages
398
How can I make units spawned by Dark Portal have a duration timer?

I have tried to trigger it, but the spawned units will not confirm to the spawned unit trigger.

What to do?
 
What event do you use to create that trigger?

  • Undead
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Summoning unit)) Equal to The Will of the Gods
          • (Unit-type of (Summoned unit)) Not equal to Serpent (Level 1)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Summoning unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit Group - Add (Summoned unit) to Undead_P1
          • Unit Group - Pick every unit in Undead_P1 and do (Actions)
            • Loop - Actions
              • Wait 5.00 seconds
              • Unit - Kill (Picked unit)
              • Unit Group - Remove (Picked unit) from Undead_P1
        • Else - Actions
Why wouldn't that work?
 
First of all, look for the action "Unit - Add expiration timer: Add <Type> timer to <Unit>" and choose one that you like.

Then you can place that simple single action instead of the loop, global variables, etc etc etc.

Also make a text display "Game - Display text: Display <String> to <Force>" and just make something so you know what works and what not. (That is the ONLY way to know if something works or not. From now on use that instead of looking if the unit dies.)

And - Conditions are only used inside an Or - Conditions.
You can remove that and just place all conditions separately.

So make the "Game - Display text" and check if it works, then come back.
 
Status
Not open for further replies.
Back
Top