Unit Building
This topic is locked. You can no longer write replies here.
Jul 29 2009, 5:09 am
By: Leon-037  

Jul 29 2009, 5:09 am Leon-037 Post #1



I was wondering how do you prevent a unit from finish building? Like if you're building a marine in a barracks, how do you keep it in queue? I've always been curious on that. Some help please and thanks.



None.

Jul 29 2009, 5:17 am Madroc Post #2



If you give a barracks that's building a marine to anyone who it's not currently owned by, and then give it back, the marine will be canceled.

Is that what you were asking for? :)




None.

Jul 29 2009, 5:43 am Leon-037 Post #3



I don't really want the marine cancelled, just it stays in queue til you can continue rebuilding again when I want to. Some example maps would be something like.. Blood Pressure Marathon when you're building a nuke I think and We Are Friend.



None.

Jul 29 2009, 5:48 am rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

Build time range: 0 to 65535
Try 65535. That should take 4000 seconds on normal to complete.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jul 29 2009, 5:52 am darksnow Post #5



what if you only wanted the unit to pause? o.o for example you're training a marine, then a fire happens and the marine cant be built, then after that it works like normal again?



None.

Jul 29 2009, 5:58 am Leon-037 Post #6



Well no no I'm not saying to make it take forever to build.. maybe I'm just not explaining well enough. Alright, let me put it in an example from the map "We Are Friend". You fight with a hero and use spells from a barracks. Say the marine takes 5 seconds to build. Ok and while I'm fighting, I die creating a marine in the barracks. I want that marine to stop building while I'm dead and continue building when I come back alive. That's how it is in the map and what I'm trying to do.



None.

Jul 29 2009, 5:59 am Leon-037 Post #7



@darksnow

Yes I want the building to pause, then resume it when I want it to



None.

Jul 29 2009, 6:00 am rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

Play command & conquer. AFAIK it's not possible in SC to "pause" a build. You could do a workaround in 1.13a, but you can't modify memory anymore, and it's not a cool enough idea to figure it out.

Madroc's way is the only other way. You might experiment with disabling the building though.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jul 29 2009, 7:48 am Falkoner Post #9



In WaF they actually put the marine in a queue, rather than pausing the build, it goes into a line of units that are ready to go.



None.

Jul 29 2009, 8:19 am Leon-037 Post #10



Yeah, sorry, that's what I'm trying to do D:



None.

Jul 29 2009, 9:55 am NudeRaider Post #11

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You could remove the player's supply. I think the unit that is currently built will be finished, but everything else in the queue is preserved.

Also as a workaround you could detect whether the player is dead and delay the effect of the spell until he's revived again.




Jul 29 2009, 5:25 pm Falkoner Post #12



Quote from NudeRaider
You could remove the player's supply. I think the unit that is currently built will be finished, but everything else in the queue is preserved.

Also as a workaround you could detect whether the player is dead and delay the effect of the spell until he's revived again.


Smart, good idea :)

Quote from Leon-037
Yeah, sorry, that's what I'm trying to do D:

Yeah, basically, WaF turns off the spell checking temporarily, so any units you do build(I think they also use Nude's method), but any units that were already building just stay there until you respawn, then they perform the spell.



None.

Jul 30 2009, 12:33 am rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

You could create a virtual queue, by using death count timers and detecting when the unit is being built.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 1 2009, 3:06 pm xAngelSpiritx Post #14

eternal lurker

Quote from Leon-037
Some example maps would be something like.. Blood Pressure Marathon when you're building a nuke

BTW, that is done by constantly removing the nuke via a trigger. If the person has a ghost, the nuke is allowed to finish completion.



None.

Aug 3 2009, 10:47 pm Sorrow_Faith Post #15



Quote from xAngelSpiritx
Quote from Leon-037
Some example maps would be something like.. Blood Pressure Marathon when you're building a nuke

BTW, that is done by constantly removing the nuke via a trigger. If the person has a ghost, the nuke is allowed to finish completion.

From what angel said, and from a really old question to one of radeath's testers (asked along time ago). "Removing" is what leon's refering to. When using "remove unit" on a unit that is being built, it will cause the unit to never "finish building" but say at 0-1 bar of progress. Once the condition of this trigger is no longer met, the unit will build (in waf, the condition is if the player still has their characters alive.)
(p.s. leon, u make me feel conceited :O, you know what im talking about)



None.

Aug 4 2009, 1:59 am payne Post #16

:payne:

I haven't read the thread, but I know that when you play a map and you reach your unit supply limit, the units being build will continue to get built until they reach the very end of their completion, though it stops right before it ends :O
But you can't build when you've reached the supply limit which could turn out to be an advantage with my system:
If you do a spell casting system based off unit building (from a Stargate for this example), you could have a spot with alot of Pylons stacked ''Supply Location'' and as long as you detect that the player is still alive, you give all the pylon to this player. Once he's dead, you give all pylons away to an other computer and there ya go! :D



None.

Aug 4 2009, 9:10 am Leon-037 Post #17



Woah thanks a lot Sorrow it works xD It's cool guys, I'll be going with Sorrow's idea, seems easier to me and it what I wanted anyways cause I'm going with a barracks not a Stargate >_< You can lose this topic now :D



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Roy