Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Triangulate spell
Triangulate spell
Feb 22 2009, 1:15 am
By: Magicide  

Feb 22 2009, 1:15 am Magicide Post #1

Sleeping wolves wake hungry.

Okay, so I've got this spell idea I want to do, but I've no idea how to actually pull it off.

It involves teleporting three lings to the nearest hero in a triangle around them, lots of flashy stuff and the hero is stunned for five seconds.

Now, I can do everything except make the triangle with the three lings; I've been told that it's something to do with mobile grids?

The layout should be like this:-

-----Z-----
-----E-----
Z--------Z

Whereas Zs are zerglings, and the E is the enemy.

Could anyone give me some guidance or an example on this please?

Thanks in advance.




Feb 22 2009, 1:19 am NudeRaider Post #2

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

Yes, mobile grids are the way to go here.
Please check the wiki(s), tutorials and use google and search before creating a topic. It's part of the posting rules!




Feb 22 2009, 1:24 am Magicide Post #3

Sleeping wolves wake hungry.

Yes, I know, I have read the wiki.

I was asking how to execute it, seeing as I do not understand grids whatsoever.

That wasn't really helpful.




Feb 22 2009, 1:33 am NudeRaider Post #4

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

Quote
Create Order
2x2 ; 3x3 ; 4x4 ; 5x5

21 20 19 18 17
22 07 06 05 16
23 08 01 04 15
24 09 02 03 14
25 10 11 12 13

In the section above, "01" is the first unit created, and "25" is created last.
Fist you create units. Either 4,9,16 or 25, depending of how big your triangle should become.

Quote
Removal Order/Give Order
The section below contains the Removal Order for the various mobile grid sizes. This is for use with 1 location or the location "Anywhere", in which all of the units are inside the of the location in question.

2x2

02 03
01 04

3x3

03 04 07
02 06 08
01 05 09
Then you remove the units 1 by 1 and center locations on them.
Assuming you have a 3x3 devourer grid (created 9 devourer) and want to create lings at 01, 04 and 09, you center 'Ling1' on devourer (will be 01) at anywhere, then remove 3 devourer (01, 02 and 03), center 'Ling2' on devourer at anywhere (will be 04), then remove another 5 (04, 05, 06, 07 and 08), and center 'Ling4' on the last devourer (will be 09), then remove it.

Then you can create the lings and your effects at these locations.

EDIT: Some info on why the patterns are the way they are:
When creating units, starcraft places the units in a counter clockwise spiral around the canter, starting with down.

When centering on (or removing, killing, etc.) units starcraft is always taking the leftmost unit that it can find, and when there's multiple units with the same x-coordinate it picks the one with the highest Unit ID (= created last)




Feb 22 2009, 1:36 am Magicide Post #5

Sleeping wolves wake hungry.

Thanks Nude, much appreciated =)

I'll try it and get back to you soon.




Feb 22 2009, 1:55 am Vrael Post #6



Just be aware it won't be a perfect equilateral triangle. Should be pretty close but

----A----
----B----
C------D

Distance AB will be slightly less than BC or BD. If we take a grid unit = 1 block, with a devourer being 2x2 grid, then AB = 2
and BC = BD = square root of 8, approximately 2.828. Dunno if that will affect what you're doing, just a point you might want to know about.



None.

Feb 22 2009, 2:30 am ForTheSwarm Post #7



Couldn't you have a special grid designed to get around that or mitigate the effect?

Like:
Devourer Devourer Devourer
Devourer Devourer Devourer
Scourge Scourge Scourge

or something.



None.

Feb 22 2009, 2:47 am Vrael Post #8



That won't give you a square grid, but it's an idea. If you found a setup that happened to give a perfect equilateral triangle, you could use it though.



None.

Feb 22 2009, 1:59 pm Magicide Post #9

Sleeping wolves wake hungry.

Would the fact that the units are visible affect the effect (paha) at all?

If so, would this be possible with observers or similar?

Having the triangle equilateral isn't really priority, seeing as the point of the attack is to surround the enemy and stun them, giving them the chance to attack the enemy from all sides without difficulty. Should be good to combo with though.




Feb 22 2009, 2:21 pm Pigy_G Post #10



Mobile grids generally go way to fast to be seen, especially if you remove and not kill the units, It's hard to even know they're there.

Quote
Having the triangle equilateral isn't really priority, seeing as the point of the attack is to surround the enemy and stun them, giving them the chance to attack the enemy from all sides without difficulty. Should be good to combo with though.

You could easily make a square surrounding the person.



None.

Feb 22 2009, 2:29 pm Magicide Post #11

Sleeping wolves wake hungry.

Quote from Pigy_G
You could easily make a square surrounding the person.

Yes, I know, but it's a "Triplets" thing.

And thanks for the info on the grids, I just tried it, and yeah, it's much simpler than I thought and works perfectly.

Thanks everyone =)




Feb 22 2009, 7:36 pm Pyro682 Post #12



Actually, You CAN make a Better triangle by using 14 wraiths.
You Can't keep the wraiths there, there are 3 that make a triangle that is closer to being equilateral than other triangles. Just remember to use the ones NOT on the outside, but the second one to the bottom left hand corner, and the second one to the bottom right hand corner, and the VERY top one (not the second one FROM the top, but the very top one).
That will make it so the lings are equidistant from your target of the spell.

I have made a test map, and it does work. The giving might be a bit confusing, but you can do it with some experimentation.



None.

Feb 22 2009, 8:01 pm Magicide Post #13

Sleeping wolves wake hungry.

I reckon i could give it a go.

Cheers, Pyro.




Feb 25 2009, 3:24 am Polkaman Post #14



Create 8 Current Player
Create 1 Computer Player
Create 8 Current Player
Create 1 Computer Player
Create 1 Current Player
Create 6 Computer Player
Remove All [Unit] For Current Player
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"


And there you have it. A triangle with three zerglings spawned on the three points.



None.

Feb 25 2009, 8:25 am NudeRaider Post #15

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

Quote from Polkaman
Create 8 Current Player
Create 1 Computer Player
Create 8 Current Player
Create 1 Computer Player
Create 1 Current Player
Create 6 Computer Player
Remove All [Unit] For Current Player
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"


And there you have it. A triangle with three zerglings spawned on the three points.
Why do you suggest such strange placement?
21 20 19 18 17
22 07 06 05 16
ZL 08 01 04 15
ZL 09 02 03 14
ZL 10 11 12 13

Did you mean
21 20 19 ZL 17
22 07 06 05 16
23 08 01 04 15
24 ZL 02 03 14
ZL 10 11 12 13
? Still doesn't make sense.

But why not
21 20 ZL 18 17
22 07 06 05 16
23 08 01 04 15
ZL 09 02 03 ZL
-- 10 11 12 13

Which would be
Create 13 Current Player
Create 1 Computer Player
Create 4 Current Player
Create 1 Computer Player
Create 4 Current Player
Create 1 Computer Player
Remove All [Unit] For Current Player
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"
Center Location "Location 1" on [Unit] owned by Computer Player
Create 1 ZLing At "Location 1"
Remove All [Unit] For Computer Player at "Location 1"




Feb 25 2009, 11:21 pm Polkaman Post #16



I think i got the 5 sqare grid wrong, maybe it starts back from the top?

it was supposed to be

. . A . .
. . . . .
. . . . .
. . . . .
. A . A .



None.

Feb 26 2009, 12:24 am Pyro682 Post #17



That's not a very good triangle. It will end up being isosceles. He wants it to be equilateral (And also equiangular).


Btw, Nude, thanks for elaborating on that coding. It wasn't making sense to me, I thought I just didn't understand something, so I didn't reply.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-1-22. : 7:10 pm]
DarkenedFantasies -- yeah it's a file size limit, around 2MB. there are files in the database that are larger than this, so I guess the limit has been reduced over time or there are hidden criteria
[2026-1-22. : 6:39 pm]
DarkenedFantasies -- it does seem to be a file size limit. Uploading a 31MB zip of multiple maps also fails, but a 350KB zip of my mod's plugins (without the 8.5MB mpq) went through.
[2026-1-22. : 7:11 am]
NudeRaider -- that's probably just SEN acting up
[2026-1-22. : 2:55 am]
DarkenedFantasies -- is there a file size limit or something? Uploading a 9MB zip file fails silently, but uploading a 1MB map worked fine.
[2026-1-21. : 11:50 pm]
Vrael -- purple might be missing a vespene geyser tho
[2026-1-21. : 11:50 pm]
Vrael -- why does it need an excuse? it looks like a starcraft map to me
[2026-1-21. : 11:26 pm]
Excalibur -- https://staredit.net/uploads/database/00032_IMAGES/00006524-1452572-5232397.png There is literally no reasonable excuse for this.
[2026-1-21. : 7:36 pm]
Ultraviolet -- goodness gracious, always such a dick
[2026-1-21. : 5:02 pm]
Excalibur -- Well for starters you could read some of the basic guides in the melee section and stop uploading absolute garbage
[2026-1-21. : 4:25 pm]
Daniel_Evan -- how do i erase a map and repost it?
Please log in to shout.


Members Online: Ultraviolet