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

Help with a sort of Quest trigger.

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 082
    • Events
    • Conditions
    • Actions
      • Set Temp_Loc_1 = (Position of Barracks 0114 <gen>)
      • Set Temp_Group_1 = (Units within 600.00 of Temp_Loc_1 matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Set Temp_Unit_1 = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Temp_Unit_1 has an item of type Crown of Kings +5) Equal to True
              • (Temp_Unit_1 has an item of type Claws of Attack +15) Equal to True
              • (Temp_Unit_1 has an item of type Kelen's Dagger of Escape) Equal to True
            • Then - Actions
              • Item - Remove (Item carried by Temp_Unit_1 of type Crown of Kings +5)
              • Item - Remove (Item carried by Temp_Unit_1 of type Claws of Attack +15)
              • Item - Remove (Item carried by Temp_Unit_1 of type Kelen's Dagger of Escape)
              • Hero - Modify Strength of Temp_Unit_1: Add 10
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
 
Level 5
Joined
Dec 18, 2007
Messages
205
what do you mean by "in all map"?
do you mean whether there is one certain item anywhere on the map or a specific item carried by (a unit/one hero) on the whole map?

greetings
 
Level 5
Joined
Dec 18, 2007
Messages
205
either what was said by adiktuz, or when entering the region, you must check EVERY item on the map and EVERY item carried by EVERY unit in EVERY slot, so that wuld be one very very huge loop
 
Status
Not open for further replies.
Top