• 🏆 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] Build Speed Trigger Help

Status
Not open for further replies.
Level 4
Joined
Aug 17, 2008
Messages
81
Building
Events
Unit - A unit Begins construction
Conditions
(Owner of (Constructing structure)) Equal to Player 1 (Red)
Actions
Unit - Set (Constructing structure) construction progress to 25%


Not sure why this trigger isn't working. Any ideas?
 
Level 8
Joined
Jan 28, 2016
Messages
486
I did a similar test to what you have described and got the same result. I added a timer which printed an on-screen message to see if the building would be completed at a different time to that set in the Object Editor but there was no change; the buildings would be completed on time.

P.S.: As of writing this post, is there a chance it's due to the race of your builders? For instance, this might not work for a player that is Human but might work for any other race.
 
Level 13
Joined
May 10, 2009
Messages
868
Unfortunately you can't modify a construction's progress with that event. You have to hold off the execution time with a timer or something else.

  • Register construction
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit Group - Add (Triggering unit) to Construction_Group
      • Countdown Timer - Start Construction_Timer as a One-shot timer that will expire in 0.00 seconds
  • Apply changes to construction
    • Events
      • Time - Construction_Timer expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Construction_Group and do (Actions)
        • Loop - Actions
          • Unit - Set (Picked unit) construction progress to 25%
      • Unit Group - Remove all units from Construction_Group
 
Status
Not open for further replies.
Top