HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Generate x gold per type of unit?

11-30-2003, 10:41 PM#1
the_boy_101
Im remaking War in iraq to try and be less buggy and more balanced, but the problem im running into is getting the oil wells to generate 2 gold per second for each on owned. Any ideas from the pros on this trigger, cause im at wits end...:bangH:

god that was so helpless easy, thanks for the info
11-30-2003, 10:48 PM#2
Eriond
Easy. I don't have the editor infront of me, but I know how it's done.

Events : Periodic Events - Every 2.00 Seconds

Actions :
Player Group - Pick Every Player in (All Players)
Player - Add (Number of units owned by (Picked Player) of type Oil Well) to gold of (Picked Player)

That should do it.
11-30-2003, 11:30 PM#3
Xinlitik
Quick fix to Eriond's.. he forgot about 2 gold per sec.

Just do arithmetic :

Number of units owned by (picked player) x 2. :)
12-01-2003, 12:00 AM#4
Eriond
Oh yeah... knew something was missing :D