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

spell problem

Status
Not open for further replies.
Level 7
Joined
Apr 15, 2006
Messages
91
I just have one problem with this trigger is what the the condition that does not pick units whos levels that are over 6


Munity
Events
Unit - A unit enters (Entire map)
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Munity
Then - Actions
Unit Group - Pick every unit in (Units within 200.00 of (Position of (Triggering unit))) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 16, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is A Hero) Equal to False
((Picked unit) is alive) Equal to True
(Owner of (Picked unit)) Equal to (Player((Integer A)))
Then - Actions
Unit - Set the custom value of (Picked unit) to (Integer A)
Unit Group - Add (Picked unit) to MunitUnitGroup
Unit - Change ownership of (Picked unit) to (Owner of (Triggering unit)) and Change color
Else - Actions
Do nothing
Wait 20.00 seconds
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Not equal to 0
((Picked unit) is in MunitUnitGroup) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to (Player((Custom value of (Picked unit)))) and Change color
Unit - Set the custom value of (Picked unit) to 0
Unit Group - Remove (Picked unit) from MunitUnitGroup
Else - Actions
Do nothing
Else - Actions
 
Status
Not open for further replies.
Top