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.
[09:19 am]
Linekat -- cool
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[2024-4-19. : 10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
Please log in to shout.


Members Online: Moose, Roy