Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Inverted Location Use
Creator: jandii
Time: Apr 8 2008, 7:44 pm
 jandii Apr 8 2008, 7:44 pm Post #1
[Avatar]
 M
 36
 K
 44
(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)
 O)FaRTy1billion[MM] Apr 8 2008, 7:48 pm Post #2
[Avatar]
Remember the game! P.s.: Feldspar.
 M
 601
 K
 46
Yeah, I think this was mentioned before. :P It just has to be the size of the unit.
(top)
 jandii Apr 8 2008, 7:56 pm Post #3
[Avatar]
 M
 36
 K
 44
Lol, it rocks :D
(top)
 Ahli Apr 8 2008, 8:14 pm Post #4
[Avatar]
Mappr
 M
 137
 K
 46
I think that would be the fastest spell casting method.
(top)
(user posted image)
 Falkoner Apr 8 2008, 8:47 pm Post #5
[Avatar]
Taking StarCraft Map Making to the Limit!
 M
 1125
 K
 38
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.
 rockz Apr 8 2008, 9:12 pm Post #6
[Avatar]
We are not amused
 M
 3
 K
 42
Omg... Mineral detection when buying. Splendid idea.
(top)
(signature image)
 Rantent Apr 9 2008, 5:24 am Post #7
[Avatar]
 M
 123
 K
 14
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.)
(top)
(user posted image)
 jandii Apr 9 2008, 5:53 am Post #8
[Avatar]
 M
 36
 K
 44
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)
 razorsnail Apr 9 2008, 7:29 am Post #9
[Avatar]
 M
 619
 K
 41
What's an inverted location?
(top)
 Ahli Apr 9 2008, 12:10 pm Post #10
[Avatar]
Mappr
 M
 137
 K
 46
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?
(top)
(user posted image)
 Falkoner Apr 9 2008, 10:04 pm Post #11
[Avatar]
Taking StarCraft Map Making to the Limit!
 M
 1125
 K
 38
Yeah, I noticed that at first too, I demand SI add inverted location accommodations!
 Wormer Apr 20 2008, 8:24 am Post #12
[Avatar]
 M
 314
 K
 30
Quote
What's an inverted location?
What is this inverted location thing everyone are talking about? :ermm:
(top)
 Ahli Apr 20 2008, 1:55 pm Post #13
[Avatar]
Mappr
 M
 137
 K
 46
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.
(top)
(user posted image)
 Falkoner Apr 20 2008, 3:11 pm Post #14
[Avatar]
Taking StarCraft Map Making to the Limit!
 M
 1125
 K
 38
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 :)
 Wormer Apr 20 2008, 3:47 pm Post #15
[Avatar]
 M
 314
 K
 30
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 time, last edit by Wormer: Apr 20 2008, 3:53 pm.
(top)
 O)FaRTy1billion[MM] Apr 20 2008, 4:59 pm Post #16
[Avatar]
Remember the game! P.s.: Feldspar.
 M
 601
 K
 46
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.)
(top)
Users reading this topic: (plus 1 guests)


[09:45 pm]
Brontobyte -- Turn the "colour off" so that the "feet" are black and white, and you will really start to see the effect! :D
[09:40 pm]
Kaias -- Well I can see that they are moving at a constant velocity now that I'm looking for it
[09:39 pm]
Brontobyte -- Nope, let me find you the one where the background is dropped out so you can actually see the difference.
[09:35 pm]
Kaias -- Wow, I had always thought they were moving at changing rates
[09:33 pm]
Brontobyte -- Ok, its in my signature now.
[09:31 pm]
Kaias -- WOW, I can't believe I misspelled now as know
Login to shout

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