Staredit Network > Forums > SC2 Assistance > Topic: Removing build time through triggers?
Removing build time through triggers?
Oct 2 2010, 12:30 am
By: Dalarsco  

Oct 2 2010, 12:30 am Dalarsco Post #1



I'm working on a tactical testing map, and I want an option to turn build times on and off depending on what scenarios the players feel like testing. I tried the "Allow Cheat - Fast Build" action and it appeared to have no effect. Anyone have any ideas?



None.

Oct 4 2010, 5:59 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Events
    Timer - Every 0.05 seconds of Game Time
Local Variables
Conditions
Actions
   Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Structure, with at most Any Amount) and do (Actions)
       Actions
           General - If (Conditions) then do (Actions) else do (Actions)
               If
                   (Progress of (Picked unit) slot 1) < 99.0
               Then
                   Unit - Set progress of (Picked unit) slot 1 to 99%
               Else


This will be near-instant construction for all units (I'm not sure if it affects structure build times). Just disable this trigger when you don't want it to happen, and enable it when you want it to happen.

Setting to 100% progress in theory would be instant construction, but in testing, it just removes the unit from the queue and does not create one. Alternatively to this, you could get the unit type of the unit in the queue, create that unit at the position of the building, and then remove the unit from the building's queue. It would be a tad bit faster than the method presented above, but it's much more artificial.

P.S.: Allowing a cheat is different than activating the cheat. You have to type out the cheat in-game for it to execute.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: NudeRaider