• 🏆 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!

[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