• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] What Wrong with this trigger

Status
Not open for further replies.
Level 13
Joined
Sep 24, 2007
Messages
1,023
  • walk castle bottem right
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Villager (Male 2)
      • (Unit-type of (Triggering unit)) Equal to Villager (Male)
      • (Unit-type of (Triggering unit)) Equal to Villager (Female)
    • Actions
      • Unit Group - Pick every unit in (Units in Region 000 <gen>) and do (Unit - Order (Triggering unit) to Move To (Center of Region 001 <gen>))
thxs for any help i prolby did something really dumb to it
 
Level 10
Joined
Jun 26, 2005
Messages
236
The reason it isn't working is because a unit doesn't trigger that trigger, so when you say triggering unit, it doesn't pick up any units.

This is to fix your trigger:

  • Try This
  • Events
  • Time - Every 1.00 seconds of game time
  • Conditions
  • //none
  • Actions
  • Unit Group - Pick every unit in (Units in Region 000 <gen>) and do If Unit Type of (Picked Unit) equal to (younitType) then (Unit - Order (Picked unit) to Move To (Center of Region 001 <gen>)) else
Or simply change the trigger to this:
  • This is Better
  • Events
  • A unit enters Region (Blah blah blah <gen>)
  • Conditions
  • Unit Type of (Triggering Unit) equal to (Blah blah blah)
  • Actions
  • (Unit - Order (Triggering unit) to Move To (Center of Blah <gen>))
 
Status
Not open for further replies.
Top