• 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] Trigger for a multi choice upgrade

Status
Not open for further replies.
Level 2
Joined
Mar 14, 2012
Messages
20
Basically on my map I have given each player an arrow tower, and each one is capable of researching:
  • Specialise in Damage
  • Specialise in Range
  • Specialise in Attack Speed

What I'm trying to do is make the upgrades a choice, for example, I click my tower and choose to specialise in Damage (then I want the trigger to hide/remove the other 2 upgrades that are remaining)

I can't seem to find much in the trigger editor to do this with an upgrade, I did try making them abilities and have the trigger do all the work. But still no luck.

In my rage, I deleted that trigger because I just couldn't get it to work haha, so i havn't got an example of my trigger to post sorry, I've decided to just give each player 1 lumber for the choice of upgrade at the moment until I can hopefully get this sorted out.

Any feedback at all will be appreciated ^.^

Tom
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
Do it like this, but change the tech types to your own ones.
  • Untitled Trigger 067
    • Events
      • Unit - A unit Begins research
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Researched tech-type) Equal to Iron Forged Swords
        • Then - Actions
          • Player - Set the max research level of Iron Plating to 0 for (Triggering player)
          • Player - Set the max research level of Long Rifles to 0 for (Triggering player)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Researched tech-type) Equal to Black Gunpowder
            • Then - Actions
              • Player - Set the max research level of Iron Forged Swords to 0 for (Triggering player)
              • Player - Set the max research level of Storm Hammers to 0 for (Triggering player)
            • Else - Actions
  • Untitled Trigger 072
    • Events
      • Unit - A unit Cancels research
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Researched tech-type) Equal to Iron Forged Swords
        • Then - Actions
          • Player - Set the max research level of Iron Plating to 1 for (Triggering player)
          • Player - Set the max research level of Long Rifles to 1 for (Triggering player)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Researched tech-type) Equal to Black Gunpowder
            • Then - Actions
              • Player - Set the max research level of Iron Forged Swords to 1 for (Triggering player)
              • Player - Set the max research level of Storm Hammers to 1 for (Triggering player)
            • Else - Actions
 
Status
Not open for further replies.
Top