PDA

View Full Version : So... has anyone learnt the half-built buildings thing?


BSTRhino
02-11-2004, 9:52 PM
So... has anyone learnt how to do half-built buildings thing confidently?

If not, we should get try to get a few people to learn it. It'd mean our little community would be the tiniest bit smarter.

Doom_Dragoon
02-11-2004, 9:55 PM
I'll look into it when I start testing each and every sprite.

BSTRhino
02-11-2004, 10:09 PM
You will? Gosh Doom, cool. Although, I was hoping someone who didn't have so many other projects to do might be inclined to learn it.

StealthyDeath
02-11-2004, 10:19 PM
I can probably do this too, but I don't know what this half-built buildings is. Maybe someone could explain?

Ark-templarius
02-11-2004, 10:28 PM
http://www.blizzforums.com/showthread.php?t=35253

All credit for this discovery goes to DrunkenWrestler. Currently, the only way to do it is with StarForge or a hex editor.

1. In the unit layer, place the building (or unit) that you would like to use. Most protoss and zerg buildings do not work.
2. Select it and hit enter or select properties from the right-click menu.
3. Look at the number in the Unit ID field and remember it
4. Delete the unit
5. Go to the sprites layer, place any sprite on the map
6. Select the sprite, and go to its properties (enter or right-click)
7. Change its sprite ID to the Unit ID you found earlier, and uncheck the "draw as sprite" flag. Also check the "disabled" flag.

This map contains all terran buildings and add-ons. Note that the Engineering bay, Comsat Station, and Supply Depot create a stonehenge sprite when disabled, and will crash Starcraft if they are visible when the game starts.

If the disabled flag is not set, then the unit will behave just like a unit in the unit layer, with the exception of the final note below.

Another Note: The disabled marine in this map cannot move or fire. I have tried using the enable doodad trigger on him, and about 80% of the time SC crashes (no connection with the unit being visible). The other 20% of the time the marine becomes active again and can fire and move. Disabling it after re-enabling it will cloak it and freeze him in place, like disabling a regular marine. For all buildings I have tried, enabling them with a trigger crashes Starcraft.

Another Note: If a custom HP setting is used for one of these units or buildings, its current HP will always be the default for that unit, and its max will be the custom value. For example, if in your map, marine HP is set to 100, a marine placed as a sprite will have 40/100 HP. If you set his HP to 1, he will have 40/1 HP. The disabled flag for the sprite does not have to be checked for this to happen.

Give me a few moments and I'll alter a map.

StealthyDeath
02-11-2004, 10:33 PM
Ok, thanks. I didn't even know it was at BF.

Dark_Soul74
02-12-2004, 5:15 PM
Max/Current HP used like this can be used to create altered wireframe colors. (U)Bolt_Head made a Zergling glow grey/dark grey/blackish, for example, using 3/2.

BSTRhino
02-12-2004, 5:51 PM
Yeah, I noticed that with my StarGraft ASM programming once. I made a button that would increase the unit's health by 100. The wireframe would get funny colours when it when above the maximum.