• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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