Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Warcraft > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 12-04-2004, 05:46 PM   #1 (permalink)
BattleForums Newbie
 
Join Date: Dec 2004
Age: 21
Posts: 3
Problems with triggers

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 is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 12-06-2004, 01:06 PM   #2 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 17
Posts: 137
i dont think u can make players control regoins -_-
MyNameIsMonky is offline   Reply With Quote
Old 12-09-2004, 03:46 AM   #3 (permalink)
BattleForums Newbie
 
Join Date: Dec 2004
Age: 21
Posts: 3
i dont need to designate control, i just need to designate who has more units in the area.
kotarox is offline   Reply With Quote
Old 12-12-2004, 06:34 AM   #4 (permalink)
BattleForums Addict
 
Icedragon's Avatar
 
Join Date: Aug 2002
Location: The Swiming Pools
Age: 20
Posts: 834
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
__________________
I Will Rise from the Depths and be HEARD!
Icedragon is offline   Reply With Quote
Old 12-12-2004, 03:13 PM   #5 (permalink)
BattleForums Addict
 
SoNiC_tHe_IgEl's Avatar
 
Join Date: Aug 2003
Location: Germany
Age: 19
Posts: 505
and ofcourse u have to set:

Unit leaves region
unit owned by player 1
set the varible from player -1
__________________
OMFG ROFL U ARE GAY
SoNiC_tHe_IgEl is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« TFT map protector | .w3x to .w3m ???? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 03:18 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0