Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Science Vessels and Inverted Locations
Science Vessels and Inverted Locations
Nov 20 2008, 5:57 am
By: SelfPossessed  

Nov 20 2008, 5:57 am SelfPossessed Post #1



I'm trying to detect when a player moves a hero Science Vessel from its location. For every unit thus far, I've been using DatEdit, finding the unit, and then clicking on the graphics tab. I then use this formula for the coordinates of my location.

Left = Left + Right - 1
Top = Up + Down - 1
Right = 0
Bottom = 0

I then center the location on the appropriate unit. This has seemed to work for every unit thus far. Except, of course, the Science Vessel. The Science vessel has these stats

Left: 32
Right: 32
Up: 33
Down: 16

Which means I should be using a location that is

Left = 63
Top = 48
Right = 0
Bottom = 0

Except that the Science Vessel is never ever found in that location. Ever. What am I doing wrong?



None.

Nov 20 2008, 3:02 pm rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

Locations center on the center of the unit. Use this formula:
2(min(left/up,right/down))-1. Those aren't division symbols either.

If the player moves the science vessel directly down, it won't be detected.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:13 pm]
NudeRaider -- I am gettin' so hot :teach:
[04:08 pm]
lil-Inferno -- so take off all your clothes
[02:38 pm]
Ultraviolet -- ooh it's gettin hot in here
[09:38 am]
NudeRaider -- Symmetry
Symmetry shouted: I meant more why is it relevant
I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
[05:02 am]
Symmetry -- I refuse to let it die! Send forth the memes!
[05:00 am]
RIVE -- Brood War Mapping we can believe in.
[02:58 am]
Ultraviolet -- RIVE
RIVE shouted: #MBWMGA
Resident MAGAt approves
[02:20 am]
Symmetry -- I meant more why is it relevant
[2026-7-13. : 7:20 am]
RIVE -- #MBWMGA
Please log in to shout.


Members Online: Ultraviolet