• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Unit Upgrade Help

Status
Not open for further replies.
You can make them available/unavailable with triggers:
  • Untitled Trigger 029
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Make Footman Unavailable for training/construction by (Picked player)
  • Untitled Trigger 031
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Berserker Upgrade
    • Actions
      • Player - Make Footman Available for training/construction by (Triggering player)
 
Custom script: set bj_wantDestroyGroup = true
Unit group - pick all units in playbale map area matching (matching unit) is alive and owner (matching unit) equal to triggering player and unit type of (matching unit) equal to *your unit type*
loop
->replace (picked unit) with *new unit type*

Do that in the "finishes research" trigger.
 
  • Zergling upgrade.
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
    • (Researched tech-type) Equal to Zergling Upgrade
      • Actions
        • Player - Make Mutant Dog Unavailable for training/construction by (Triggering player)
  • Player - Make Zergling Available for training/construction by (Triggering player)
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) Equal to (Triggering player)) and ((Unit-type of (Matching unit)) Equal to Mutant Dog)))) and do (Actions)
    • Loop - Actions
      • Unit - Replace (Picked unit) with a Zergling using The new unit's default life and mana
I made the research trigger but nothing happens to my existing mutant dogs.
It makes the mutant dog unavailable and the zergling available but it doesn't do what is stated above.
Why is this?
 
Status
Not open for further replies.
Back
Top