I need help to complete my income script for my work in progress map. In essence I want the last part of it (the 10 second delay before receiving the income again) to loop until either the end of the game or the building is destroyed (similar to how ressource buildings work in Battle for Middle Earth and Command & Conquer). What should I modify to have the intended effect ?
-
Income
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
((Triggering unit) is A town-hall-type unit) Equal to True
-
(Unit-type of (Triggering unit)) Equal to Farm
-
(Unit-type of (Triggering unit)) Equal to Burrow
-
(Unit-type of (Triggering unit)) Equal to Ziggurat
-
(Unit-type of (Triggering unit)) Equal to Spirit Tower
-
(Unit-type of (Triggering unit)) Equal to Nerubian Tower
-
(Unit-type of (Triggering unit)) Equal to Moon Well
-
-
-
-
Actions
-
Player - Set (Owner of (Triggering unit)).Current gold to (((Owner of (Triggering unit)) Current gold) + 25)
-
Wait 10.00 game-time seconds
-
Player - Set (Owner of (Triggering unit)).Current gold to (((Owner of (Triggering unit)) Current gold) + 25)
-
-