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.
[07:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
Please log in to shout.


Members Online: anoeth47