- Joined
- Oct 5, 2008
- Messages
- 15
Hi, I've been working on a trigger for a map I'm working on. The general idea is for you to build a structure and then upgrade said structure to another, which, upon completion, would give a desired effect. However, using the "A unit finishes constructing a unit" tag doesn't seem to work.
Any ideas on how I should fix this?
Here's the trigger:
(The other 5 actions are omitted but are identical except using a different structure in the conditions)
Thanks for your time.
Any ideas on how I should fix this?
Here's the trigger:
-
Events
- Unit - A unit Finishes construction
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Constructed structure)) Equal to Government Building COMMUNIST
- (Unit-type of (Constructed structure)) Equal to Government Building FASCISM
- (Unit-type of (Constructed structure)) Equal to Government Building FEDERATION
- (Unit-type of (Constructed structure)) Equal to Government Building MONARCHY
- (Unit-type of (Constructed structure)) Equal to Government Building REPUBLIC
- (Unit-type of (Constructed structure)) Equal to Government Building THEOCRACY
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Constructed structure)) Equal to Government Building COMMUNIST
-
Then - Actions
- Game - Display to (All players) the text: ((Name of (Owner of (Constructed structure))) + has made his new government COMMUNIST!)
- Set incomeGOVLUM[(Player number of (Owner of (Constructed structure)))] = 120
- Set incomeGOVMULTI[(Player number of (Owner of (Constructed structure)))] = 80
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Thanks for your time.