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

Help

Status
Not open for further replies.
Code:
-event
unit - a unit enters region

-condition
or - any (conditions) are true 
conditions
(item carried by (entering unit) in slot 1) equal to key 0001
(item carried by (entering unit) in slot 2) equal to key 0001
(item carried by (entering unit) in slot 3) equal to key 0001
(item carried by (entering unit) in slot 4) equal to key 0001
(item carried by (entering unit) in slot 5) equal to key 0001
(item carried by (entering unit) in slot 6) equal to key 0001

-actions
destructible - open gate 0001
item - remove key 0001

That should work flawless :)
 
Level 2
Joined
Jul 2, 2005
Messages
10
Here you go

Here is exaple of most simple way i know

Even:
A Unit Enters Region (Region 001)

Condition:
[Boolen Comprasion]
If entering unit has item of type Moon Key

Actions:
Open Gate : Elven Gate 052

Or something like that have fun !
And don't take more work by using if item carried in slot 1... couse this takes more time this what i say should work and never mind in wchich slot yo hero have the key !

~Robin Hood
~Credits:
Idead:Robin Hood
Other:Robin Hood
Question:Map King
 
Status
Not open for further replies.
Top