• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Key Required

Status
Not open for further replies.
Level 11
Joined
Sep 12, 2008
Messages
657
its not hard. this is the code:

  • Key check
    • Events
      • Unit - A unit enters YourRegion
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to YourKey
            • Then - Actions
              • Destructible - Open YourGate
            • Else - Actions
 
Status
Not open for further replies.
Top