• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Dark Portal ability

Status
Not open for further replies.
Level 8
Joined
Jun 13, 2010
Messages
344
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?
 
Level 8
Joined
Jun 13, 2010
Messages
344
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?
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
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.
Top