- Joined
- Mar 28, 2015
- Messages
- 631
In order to create an additional source of gold (source of gold other than gold mines) I've created a trigger that gives gold to the player if the player builds a structure on top of a glowing ruin, however in order for the gold to only be given when the structure is fully build I've found it necessary to add another trigger. This other trigger replaces the structure when it is fully build with an identical version which allows the first trigger to act and give the player gold on a periodic basis.
-
Untitled Trigger 12
-
Events
-
Time - Every 5.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in Region 001 <gen> matching ((Unit-type of (Matching unit)) Equal to Moon Well (gold))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Region 001 <gen> contains (Picked unit)) Equal to True
-
-
Then - Actions
-
Player - Set (Owner of (Picked unit)) Current gold to (((Owner of (Picked unit)) Current gold) + 20)
-
-
Else - Actions
-
-
-
-
-
-
Untitled Trigger 15
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Moon Well (Building dummy)
-
-
Actions
-
Unit - Replace (Constructed structure) with a Moon Well (gold) using The old unit's relative life and mana
-
-