HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

money based on location control

08-10-2002, 01:23 AM#1
ijustwanttoread
i am making a map where you get money at the end of each turn, based on the number of locations u control. you control a location(small area around a special doodad) by being the only player to own a building there. each turn is 2 minutes and uses a repeating timer. the timer shows up and works fine, but i cant figure out how to get it to check who is the only player who controls buildings in the location and give him money at the end of each turn. some help plz?
08-10-2002, 02:24 PM#2
Poison_Snake
You can make a condition (boolean) where you can "check" if a unit of a player is in a region.

And when the turn is over you can make this boolean condition and a if/then/else action where the condition is s.th. like when only the unit of player 1 is in the region and as action give player xx money ;)

hope could help ^^
08-10-2002, 11:24 PM#3
ijustwanttoread
Thanks for the help, but i cant seem to get it to work. Here is the trigger. It doesnt do anything at all. Please tell me what Im doing wrong, and I need some precise conditions/actions because I can't seem to find anything.

Events:
Timerx expires
Unit enters region Y
Conditions:
Unit entering region Y is structure = true
Actions:
Add Player 1 to TaxIndexY(playergroup variable)
" "
" "
" "
" "
" "
" "
Add Player 8 to TaxIndexY(playergroup variable)
Remove owner of entering unit from taxindexY.
If number of players in taxindexY is equal to 7, then give owner
of entering unit 500 bucks, else do nothing
If number of players in taxindexY is equal to 7, then display
text "Y- 500" to owner of entering unit, else do nothing.
08-11-2002, 12:04 AM#4
Guest
Sigh, have to do over.

Anyways, i know how to solve this problem.

Event:
- Timer Expires (notice, events are this OR that, not this AND that)

Condition:
- (None)

Action:
- If (( Number of units in (units in Region 000 owned by Player 1 of type (something, could be a variable))) is greater than or equal to 1) then do (Player - Add player 1 to TaxIndex) else do...

Hope this answers the question.