Burrowed Units
Jan 24 2010, 10:11 pm
By: o_o (TheGatePro) ~_~  

Jan 24 2010, 10:11 pm o_o (TheGatePro) ~_~ Post #1



Ok, I've seen missions with 20 by 12 rooms where there were burrowed units by the exits and the enter areas. I don't understand how these things work, can someone please explain.

EDIT: Sorry, I was trying to say that I wanted to understand how to move from room to room, and I didn't get why they used burrowed units, and what the purpose of it was.

Post has been edited 1 time(s), last time on Jan 24 2010, 10:38 pm by the gatepro.



None.

Jan 24 2010, 10:13 pm stickynote Post #2



What exactly do you not know how to do?



None.

Jan 24 2010, 10:30 pm CecilSunkure Post #3



Are you asking how they allow you to move from room to room?

Well there are multiple ways to do this with burrowed units. Basically, the burrowed units act as somewhere to center locations onto. When a player runs over a certain amount (assuming you have a location constantly centering on the player) you can detect when they are near a room's exit by the types of units that are under the player and near the exits. From here, you can center another larger location onto the burrowed units at the player's location, and this larger one should be large enough to cover the burrowed units in the next room. You can use this to then center a location onto the units in the next room, and move the player there. When doing this, you'll need to be giving the burrowed units to different players, so that you can make sure that your locations center on the units you need them to.



None.

Jan 24 2010, 10:45 pm o_o (TheGatePro) ~_~ Post #4



Quote from CecilSunkure
Are you asking how they allow you to move from room to room?

Well there are multiple ways to do this with burrowed units. Basically, the burrowed units act as somewhere to center locations onto. When a player runs over a certain amount (assuming you have a location constantly centering on the player) you can detect when they are near a room's exit by the types of units that are under the player and near the exits. From here, you can center another larger location onto the burrowed units at the player's location, and this larger one should be large enough to cover the burrowed units in the next room. You can use this to then center a location onto the units in the next room, and move the player there. When doing this, you'll need to be giving the burrowed units to different players, so that you can make sure that your locations center on the units you need them to.

Can you make a trigger because I don't really understand what you just said.



None.

Jan 24 2010, 11:52 pm Lanthanide Post #5



Cecil's explanation seems to be written from a perspective of re-using locations as much as possible.

If you don't care about re-using locations, a simple explanation as follows:

Many terrain areas are placed on the map. Each area contains a burrowed zergling owned by P8 at 'entrance' to the area, burrowed drone for P8 at 'exit' from that same area. Each area contains a location that encompases the whole area, called "area <number>".

Cond: Always (this trigger occurs at the start of the game, and is not preserved)
Action: Set deaths for "area #" to 1 for P1

Cond: Always
Action: Center location "player" on P1 men at anywhere. "player" is a smallish location, probably 32x32 in size.
Preserve trigger

Cond: P8 brings 1 drone to location "player"
P1 deaths for "area #" is exactly 1
Action: Set deaths for "area #" to 2 for P1
Center location "player" on zerg zergling at "area 2"
Move men for P1 at "area 1" to "player"

Repeat the above triggers for all of your areas and increment the values as appropriate. So when a player gets to the drone at the exit to an area, they will be moved to the entrance of the next area. This simple design doesn't allow for a player to backtrack between rooms - if you added a trigger to detect when the player stepped on a zergling in area 2 and sent it back to area 1, then as soon as you spawned at the entrance point in area 2 (on top of the zergling), you would be sent back to room 1. There are ways to get around this with a little thought and consideration to how the trigger conditions work.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: jun3hong, m.0.n.3.y, Ultraviolet