HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

a couple questions

02-08-2004, 04:52 AM#1
OneWinged4ngel
First, I have an element in my map where you get 3 gold and 3 lumber per second, and you should get 1 extra gold per second per gold mine you build. Now then, how would I get the game to count the number of COMPLETED gold mines, rather than number of gold mines including those that are still being built? only completed gold mines should have the effect. Is there a handy way to do this?

Right now GoldProducers is an integer array and
it has periodic event every 2 secs that does:
Select all players in player group (all players) and do actions:
Set Goldproducers(player number of picked player)=(Count number of living units of type Gold Mine owned by picked player)
Anyhow, it works fine EXCEPT it counts mines that aren't yet complete!!! like one still in construction. I could probably get around this but I wanna know if I can somehow do it without making a ton of triggers and stuff that really aren't nescessary

also how do I make a neutral building use an ability for a price? Like the Goblin Laboratory uses reveal for a price.
02-08-2004, 06:23 AM#2
OneWinged4ngel
Nevermind I got the mines to work