Hello! I am new here. I need help making a Warcraft III The Frozen Throne map.
Idea is the following: 12 players in a labyrinth. They must get 6 keys to open the gate to escape to freedom. The keys generate randomly every time you play so you dont know where are they. That I solved. Works fine.
Now to the point: I want the gate to be opened when there are six keys close to the gate (inside a region of course) regardless if the 6 keys are carried by just one of the players or by, say, six players each with one key.
The point is there must be six items inside the region to open the gate.
Problem is I have no idea how to do that with the triggers. I know I must use variables and integers but I don't know what to do.
There you see three survivors inside the red area. Lets assume between the three players they have the required number of keys. The gate must open. How do I do that?
This is what I tried but it did not work even with one player having the six keys.
Idea is after you enter the zone you use the key and it has to be removed (obviously so you cant use the same key six times)
This is the victory condition. Again, does not work.
These are my variables. What am I doing wrong?
Any Idea how to do it? I will give credits if you help after the map is finished.
Thanks a lot for your time!!!
--MG-Goblin.
Idea is the following: 12 players in a labyrinth. They must get 6 keys to open the gate to escape to freedom. The keys generate randomly every time you play so you dont know where are they. That I solved. Works fine.
Now to the point: I want the gate to be opened when there are six keys close to the gate (inside a region of course) regardless if the 6 keys are carried by just one of the players or by, say, six players each with one key.
The point is there must be six items inside the region to open the gate.
Problem is I have no idea how to do that with the triggers. I know I must use variables and integers but I don't know what to do.

There you see three survivors inside the red area. Lets assume between the three players they have the required number of keys. The gate must open. How do I do that?
This is what I tried but it did not work even with one player having the six keys.

Idea is after you enter the zone you use the key and it has to be removed (obviously so you cant use the same key six times)

This is the victory condition. Again, does not work.

These are my variables. What am I doing wrong?
Any Idea how to do it? I will give credits if you help after the map is finished.
Thanks a lot for your time!!!
--MG-Goblin.