Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Inverted Location Use

Creator: jandii
Time: Apr 8 2008, 7:44 pm

Post #1     jandii Apr 8 2008, 7:44 pm

[Avatar]
 offline contact
(sorry if this is old)

Just found a really handy use for inverted locations. I needed to prevent a ghost from moving out of a spot, and using the 'move to invalid terrain' method meant that if you tried to nuke it stopped. And using a 1x1 pixel location meant that you could walk about 10 pixels and then get snapped back.

BUT! if you use an inverted 14x21 location the ghost touches all sides (barely) and is detected, and if you move it 1 pixel in any direction, it's outside and not detected!

So you just need a trigger like this:

CONDITIONS:
Player 1 brings exactly 0 terran ghost to 14x21

ACTIONS:
Move all terran ghost for Player 1 at Anywhere to 14x21
Preserve Trigger

And with hypers, it looks very good :)

It could be used as a spell system, like with a zergling that moves outside of a location it triggers, and it would have great reaction times.
Top

Post #2     O)FaRTy1billion[MM] Apr 8 2008, 7:48 pm

[Avatar]
Remember the game! P.s.: Feldspar.
 offline contact
Yeah, I think this was mentioned before. :P It just has to be the size of the unit.
Badlands 128 Minimap Colors    I like useless tables!
Platform  95 Minimap Colors
Install   85 Minimap Colors    What is this table, you ask?
Ashworld  92 Minimap Colors    I made images that list all the
Jungle   105 Minimap Colors    tiles' minimap colors arranged
Desert   109 Minimap Colors    by tileset groups (i.e. tileset
Ice       94 Minimap Colors    index.)
Twilight  97 Minimap Colors    I could make my own SCPM...
Top

Post #3     jandii Apr 8 2008, 7:56 pm

[Avatar]
 offline contact
Lol, it rocks :D
Top

Post #4     Ahli Apr 8 2008, 8:14 pm

[Avatar]
Mappr
 offline contact
I think that would be the fastest spell casting method.
(user posted image)
Top

Post #5     Falkoner Apr 8 2008, 8:47 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
Hmm, even over mineral detection when buying? I'm not sure about that, since units have about a .2 time period where they react to orders.
Top

Post #6     rockz Apr 8 2008, 9:12 pm

[Avatar]
We are not amused
 offline contact
Omg... Mineral detection when buying. Splendid idea.
"Personal foul; offense; 69; He was givin' him the business"
The player was later suspended for "Actin' the fool".
Top

Post #7     Rantent Apr 9 2008, 5:24 am

[Avatar]
The real one.
 offline contact
Lol, I'm surprised you figured out the unit dimensions yourself. There are programs to help figure this out.
And one other thing, it doesn't work well with some units as the center location function doesn't center on the exact center of all of them. (So it depends on which direction they are facing where their center is.)
(user posted image)
Top

Post #8     jandii Apr 9 2008, 5:53 am

[Avatar]
 offline contact
Haha just did a print screen as I went to place the unit in scmdraft and found out how big the bounding box was. Not too crazy :P although not being able to select the location afterwards = mucho pain. Please tell me it's impossible to select an inverted location, or I want my hour back T_T
Top

Post #9     razorsnail Apr 9 2008, 7:29 am

[Avatar]
 offline contact
What's an inverted location?
Top

Post #10     Ahli Apr 9 2008, 12:10 pm

[Avatar]
Mappr
 offline contact
Quote from jandii
Haha just did a print screen as I went to place the unit in scmdraft and found out how big the bounding box was. Not too crazy :P although not being able to select the location afterwards = mucho pain. Please tell me it's impossible to select an inverted location, or I want my hour back T_T

Select locations in the tree on the left side below your minimap in scmdraft. click on the name of the location, press enter and edit it?
(user posted image)
Top

Post #11     Falkoner Apr 9 2008, 10:04 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
Yeah, I noticed that at first too, I demand SI add inverted location accommodations!
Top

Post #12     Wormer Apr 20 2008, 8:24 am

[Avatar]
 offline contact
Quote
What's an inverted location?
What is this inverted location thing everyone are talking about? :ermm:
Top

Post #13     Ahli Apr 20 2008, 1:55 pm

[Avatar]
Mappr
 offline contact
inverted location:
1. create a location
2. edit the location:
2A: swap the left/upper coordinates (X) with the right/lower coordinates (Y)

Code

normal location
(X)-----
|      |
-----(Y)

inverted location
(Y)-----
|      |
-----(X)

Inverted locations will never be blocked by the end of the map while centering on a unit (it is always perfect on the unit like a 1x1 pixel location).
You can only detect units inside an inverted location when they hit all (or maybe only a few) edges of the inverted location with the "bring"-condition.
(user posted image)
Top

Post #14     Falkoner Apr 20 2008, 3:11 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
Quote
You can only detect units inside an inverted location when they hit all (or maybe only a few) edges of the inverted location with the "bring"-condition.

They have to be touching every edge of the location at once :)
Top

Post #15     Wormer Apr 20 2008, 3:47 pm

[Avatar]
 offline contact
Huh, quite interesting! Thanks guys! :D

EDIT:
I wonder if you can do it like this:

Code

------X
|     |
Y------


Or like this:

Code

------Y
|     |
X------


In the first case units should be detected when touching just left and right borders at once and in the latter case when touching top and bottom borders at once...
This post was edited 1 times, last edit by Wormer: Apr 20 2008, 3:53 pm.
Top

Post #16     O)FaRTy1billion[MM] Apr 20 2008, 4:59 pm

[Avatar]
Remember the game! P.s.: Feldspar.
 offline contact
If X2 > X1, the unit must be between or touching the left and right edges.
If Y2 > Y1, the unit must be between or touching top and bottom edges.
If X1 > X2, the unit must be touching both the left and right edges.
If Y1 > Y2, the unit must be touching both the top and bottom edges.
X1 and X2 are independant of Y1 and Y2; you can do whatever with either and the other wont be affected. :shifty:

(To answer your 'I wonder', yes. It should work.)
Badlands 128 Minimap Colors    I like useless tables!
Platform  95 Minimap Colors
Install   85 Minimap Colors    What is this table, you ask?
Ashworld  92 Minimap Colors    I made images that list all the
Jungle   105 Minimap Colors    tiles' minimap colors arranged
Desert   109 Minimap Colors    by tileset groups (i.e. tileset
Ice       94 Minimap Colors    index.)
Twilight  97 Minimap Colors    I could make my own SCPM...
Top
Users in this topic:


[07:38 am]
[Dark_Marine]:] -- MOOSE END MAFIA D:<
[07:38 am]
[07:33 am]
KrayZee -- Never gonna let you down
[07:33 am]
KrayZee -- Never gonna give you up
[07:11 am]
Oo.CooL.oO -- you're gonna bring me down
[07:11 am]
aphtershox -- can't we all just get along?!
[07:07 am]
razorsnail -- shutup shutup shutup shutup
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions