# Keys For Gates

Status
Not open for further replies.

#### XScorchX

Level 3
Hey All,
In my map are A Lot of Doors that may only
be opened by Having keys in the inventory,
The Problem is, You got a Total of 4 Heros, and
The Door opens if The Key is in any Slot of any
Hero, That would take damn long for sooo much doors.
is there any other way?

I Tried Something like this:
• Events
• Einheit - A unit enters Gebiet 079 <gen>
• Conditions
• (Item-type of (Item carried by (Entering unit) in slot 1)) Gleich SchlÃ¼ssel
• (Item-type of (Item carried by (Entering unit) in slot 2)) Gleich SchlÃ¼ssel
• (Item-type of (Item carried by (Entering unit) in slot 3)) Gleich SchlÃ¼ssel
• (Item-type of (Item carried by (Entering unit) in slot 4)) Gleich SchlÃ¼ssel
• (Item-type of (Item carried by (Entering unit) in slot 5)) Gleich SchlÃ¼ssel
• (Item-type of (Item carried by (Entering unit) in slot 6)) Gleich SchlÃ¼ssel
• Actions
• ZerstÃ¶rbar - Ã–ffnen DÃ¤monentor (horizontal) 6807 <gen>
But thats too much for that amount of doors and keys and 4 Heros.
How to make it Easier?

#### ap0calypse

Level 28
There is a boolean condition like this:
• Conditions
• ((Triggering unit) has an item of type Key) Equal to True
So if any hero carrying the key (in any slot) enters the region, the trigger will activate.

#### Zunariel

Level 10
You can also use

Every 1 sek

If Integer - Number of units - matching unit carrying Item = Schlüssel = True Greater than or equal to 1 = true

Then Open Door

Remove this trigger

#### XScorchX

Level 3
Thanks Both of you
Buti think ap0calypse's
idea is more simple.

Status
Not open for further replies.

Replies
1
Views
578
Replies
10
Views
830
Replies
3
Views
806
Replies
10
Views
1K
Replies
3
Views
725