Problems with triggers

kotarox

New Member
Joined
Dec 4, 2004
Messages
3
Reaction score
0
I need someone to help me make a trigger that defines which player has control of a certain region. Basically in my map whoever controls 2 of these regions makes it open a gate, but i can't find a way to define control [as in who has more units there] I know in SC they had a trigger that did exactly this, but i can't find it in WC3 WE. Any help would be appreciated.
 

kotarox

New Member
Joined
Dec 4, 2004
Messages
3
Reaction score
0
i dont need to designate control, i just need to designate who has more units in the area.
 

Icedragon

BattleForums Addict
Joined
Aug 2, 2002
Messages
836
Reaction score
0
Location
The Swiming Pools
ok well this is how i would do it
i would set some integer values for each player for every region then
when unit enters region left
player owing entering unit = player1
player1left+1
ok and do the same thing for leaves exept subtract 1 and to check control
perodic time event 2.0 seconds
If player1left > player2left then Player 1 controls
if player1left< player2left then player 2 controls
if player1left=player2left then reagion contested

not that hard i dont think
 

NewPosts

New threads

Top