• 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.

[Trigger] Unit training process alteration

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2004
Messages
76
Umm is there to alter the time it takes to train a unit with trigger? I know that I could just change it in object editor but then I want to make a mode where if you choose this one mode, everything constructs faster, kind of like the cheat warpten.

I can make the building upgrade and construction build faster by using the set building contruction progress and set upgrade progress as well. For example, i could make it so it becomes 90% progress after 2 seconds.

However I can't do anything about unit or research. Is there a trigger that allows you to do that?
 
Level 10
Joined
Jun 16, 2007
Messages
415
hmm i just looked, try this:

go to object edtior and make a copy of repair
then set the Field Reperation Time from 1.50 to something else like 0.50 or 15.

then make a trigger

  • Event
    • Player 1 types -fastbuild
  • Conditions
  • Actions
    • Set tempgroup = units of type Peasant
    • Pick every unit in tempgroup and do Actions:
      • Remove Repair from picked unit
      • Add Repair (modified) to picked unit
Now first you set the modified value to something really low, and then to something really high, and then you just watch how long it takes in game
 
Status
Not open for further replies.
Top