• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Structure upgrade to cause effect

Status
Not open for further replies.
Level 2
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:
  • 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
  • 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
(The other 5 actions are omitted but are identical except using a different structure in the conditions)

Thanks for your time.
 
Status
Not open for further replies.
Top