Staredit Network

Staredit Network -> UMS Assistance -> Spawning Close/specified distance from target
Report, edit, etc...Posted by deaden on 2006-11-20 at 15:04:00
Ok, so I have an enemy spawn point, you bring your hero to this area, It SHOULD spawn a unit roughly 2-3 squares in some direction (any doesn't matter) away from the hero. Is there an easy way to do this? I realize I could easily do this by placing burrowed units in the spawn area and just select a burrowed unit that has no hero there (the problem is I'm creating an effect before the unit spawns but the effect is in a 1x1 square so if something else is there it gets moved and the effect unit doesnt get killed causing all these spawns of invincible units heh...). However I was hoping there was a way to do it by centering a location or something more dynamic where I wouldn't have to have pre-placed spawns.
Report, edit, etc...Posted by MicAarZur on 2006-11-20 at 15:45:57
QUOTE(deaden @ Nov 20 2006, 02:04 PM)
Ok, so I have an enemy spawn point, you bring your hero to this area, It SHOULD spawn a unit roughly 2-3 squares in some direction (any doesn't matter) away from the hero. Is there an easy way to do this? I realize I could easily do this by placing burrowed units in the spawn area and just select a burrowed unit that has no hero there (the problem is I'm creating an effect before the unit spawns but the effect is in a 1x1 square so if something else is there it gets moved and the effect unit doesnt get killed causing all these spawns of invincible units heh...). However I was hoping there was a way to do it by centering a location or something more dynamic where I wouldn't have to have pre-placed spawns.
[right][snapback]592199[/snapback][/right]

SET-UP:
1 4x4 Location called 'THIS'
1 1x1 location called: 'SPAWN'
1 Location covering spawn area called: 'ZONE'
Burrowed zerglings covering spawn area 1 per square belonging to p8

Conditions: 'PLAYER' brings 'AT LEAST 1' 'HERO' to 'ZONE'

Actions:
Center location 'THIS' one 'HERO'
Give all 'ZERGLINGS' owned by 'P7' at 'ZONE' to 'P8'
Give all 'ZERGLINGS' owned by 'P8' at 'THIS' to 'P7'
Center location 'SPAWN' on 'ZERGLINGS' owned by 'P7' at 'ZONE'
Preserve Trigger

It should Spawn at the one of the corners (i forget which) but it'll be about 3-4 squares away.
And the spawn trigger can be seperate. Happy mapping smile.gif .

OR

SET UP:
ONE location labeled : 'EASIER' 6x6
ONE location labeled : 'SPAWN' 1x1

CONDITIONS: SAME

ACTIONS:
Center location labeled 'EASIER' on 'HERO' at 'WHEREVER'
Create '9' 'MUTALISK' at 'EASIER' for 'PLAYER 1'
Center location 'SPAWN' on 'MUTALISK' owned by "PLAYER 1' at 'EASIER'
Remove all 'MUTALISK' for 'PLAYER 1' at 'EASIER'
Preserve Trigger

Second one is easier, but it'll slow your hero down.
Report, edit, etc...Posted by deaden on 2006-11-20 at 15:56:28
QUOTE(MicAarZur @ Nov 20 2006, 01:45 PM)
SET-UP:
1 4x4 Location called 'THIS'
1 1x1 location called: 'SPAWN'
1 Location covering spawn area called: 'ZONE'
Burrowed zerglings covering spawn area 1 per square belonging to p8

Conditions: 'PLAYER' brings 'AT LEAST 1' 'HERO' to 'ZONE'

Actions:
Center location 'THIS' one 'HERO'
Give all 'ZERGLINGS' owned by 'P7' at 'ZONE' to 'P8'
Give all 'ZERGLINGS' owned by 'P8' at 'THIS' to 'P7'
Center location 'SPAWN' on 'ZERGLINGS' owned by 'P7' at 'ZONE'
Preserve Trigger

It should Spawn at the one of the corners (i forget which) but it'll be about 3-4 squares away.
And the spawn trigger can be seperate. Happy mappingĀ  smile.gif .
[right][snapback]592231[/snapback][/right]


Thank you, this is very helpful if I was to implement the pre-placed system, however I was hoping for a method that wouldn't require me pre-placing the spawn/burrowed lings, I would like to create a spawn on the fly in game and still retain this functionality....unfortunately I dont see how it could be done because if you move units (especially burrowed) to a location they all bunch up together in the center of the location, ther ehas to be a clever way where you can somehow center a location on someone, then center another location at the border of that location or something similair.

EDIT:
Ok looks like you did give me a way to do it without pre-placing..I see that will be right next to the hero but at least it will work...I think ill use observers though instead as they're cloaked so the player doesnt see mutas flickering on the screen... Thanks a lot man. Any other methods of course still welcome....
Report, edit, etc...Posted by MicAarZur on 2006-11-20 at 15:58:44
QUOTE(deaden @ Nov 20 2006, 02:56 PM)
Thank you, this is very helpful if I was to implement the pre-placed system, however I was hoping for a method that wouldn't require me pre-placing the spawn/burrowed lings, I would like to create a spawn on the fly in game and still retain this functionality....unfortunately I dont see how it could be done because if you move units (especially burrowed) to a location they all bunch up together in the center of the location, ther ehas to be a clever way where you can somehow center a location on someone, then center another location at the border of that location or something similair.
[right][snapback]592238[/snapback][/right]


I just posted a second method.

QUOTE
SET UP:
ONE location labeled : 'EASIER' 6x6
ONE location labeled : 'SPAWN' 1x1

CONDITIONS: SAME

ACTIONS:
Center location labeled 'EASIER' on 'HERO' at 'WHEREVER'
Create '9' 'MUTALISK' at 'EASIER' for 'PLAYER 1'
Center location 'SPAWN' on 'MUTALISK' owned by "PLAYER 1' at 'EASIER'
Remove all 'MUTALISK' for 'PLAYER 1' at 'EASIER'
Preserve Trigger

Second one is easier, but it'll slow your hero down.
Report, edit, etc...Posted by deaden on 2006-11-20 at 17:12:40
QUOTE(MicAarZur @ Nov 20 2006, 01:58 PM)
I just posted a second method.
[right][snapback]592241[/snapback][/right]


Expanding on this.....how reliable do you think it would be to say do something like this:


Spawn 9 'obs' for player 1 at 'hero' 1 square away
Spawn 9 'obs' for player 2 at 'hero' 2 squares away
Spawn 9 'obs' for player 3 at 'hero' 3 squares away
etc..

center 'spawn' at 'obs' owned by p3 (as example) 3 squares away..

Or wait would we need to increase the number of obs for each "square" or "level of distance"? I guess I could just test it out, but im at work right now, heh...

Thanks again.
Report, edit, etc...Posted by MicAarZur on 2006-11-20 at 17:21:50
Remember a 6x6 location will make it roughly 3 squares away.
And, yes, you would need to make more, just think about it this way, a mutalisk is 2x2, which equals 4. if we're working with a 6x6 space (36). then
you need 9 mutalisks 94's) to equal 36. To make it four squares away, you would need it to be 8x8. which is 64, so you would need 16. Try not to use observers though, mutalisks seem to work the best. Also, i don't know how well units get placed in a 4x4.

QUOTE
1___1___1___1___1___1___1
1___1___1___1___1___1___1
1___1___1___1___1___1___1
1___1___1___X___1___1___1
1___1___0___1___1___1___1
1___0___1___1___1___1___1
0___1___1___1___1___1___1

1 = Unused Mutalisk
0 = Location'd Mutalisk
X = Hero unit

Center location labelled ___ on hero
Create 49 Mutalisk at ___
Center location labeled '3 AWAY' on mutalisk
Remove 8 mutalisk at ___
Center location labeled '2 AWAY' on mutalisk
Remove 8 mutalisk at ___
Center location labeled '1 AWAY' on mutalisk
Remove all mutalisk at ___

**I don't know if it'll work with more than 9, but it's worth a try.
Next Page (1)