• 🏆 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!

Need Help With Triggers

Status
Not open for further replies.
Level 9
Joined
Dec 22, 2008
Messages
488
Hey, somebody knows how to fix this?

needhelp.jpg


If you can, you can give me another trigger that works in the same way (no units in region = defeat), but I want it with Reign of Chaos triggers.

Thanks,
Illidan_Hunter - Wings of Roleplay Clan
 
Level 9
Joined
Aug 21, 2008
Messages
533
a) your region is wrong placed.
b) there is always no unit in it.
Just like, "is there nothing in a vacumwhile im in?" you are in it, but in the rest of the vacum there is still nothing. So there is infinitife nothing. The trigger cheks, and there are units in it, but there are always infinitife "no unit"s.

Instead, pick all units in the region, and chek how much units are in the group. if it is 0, then the trigger fires.
 
Level 9
Joined
Dec 22, 2008
Messages
488
What you've explained is strange to me, but I understood it.

I am kinda fail in triggering, do you know how to do "Instead, pick all units in the region, and chek how much units are in the group. if it is 0, then the trigger fires."?
 
You can also do this:
  • Trigger
  • Events
    • Unit - A unit leaves The Village <gen>
  • Conditions
  • Actions
    • Set TempG = (Units in The Village <gen>)
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Number of units in TempG) Equal to 0
      • Then - Actions
        • //Actions here
      • Else - Actions
    • Custom script: call DestroyGroup (udg_TempG)
 
Level 2
Joined
Jun 1, 2010
Messages
13
Question for you above me.
If a unit dies, does that count as him leaving a region?
That makes no sense, since he dies, and is not leaving.
 
Status
Not open for further replies.
Top