Staredit Network

Staredit Network -> UMS Assistance -> Detecting Out of Many Units, if One has Died
Report, edit, etc...Posted by SpiralEdge on 2005-06-15 at 09:13:51
This has been a real brain boggler for myself and another person who I had help me think of a solution with, and we just cant seem to find a solution. Basically its like this in the map everything lays itself out, including the enemies. Now, I want to make it so that when an enemy dies he leaves a body. For instance. Say I have 9 marines standing in the same little 3 x 3 area. How could I tell if one has died, to quickly place a uraj crystal where its corpse once was? I tried using undeground lings that rapidly switched from one rine to the next, but this had problems, for when the rines would get to close to each other, another unit would take the ling that he was never supposed to take. I also tried giving the unit to another player, even though by the time the triggers were read I would switch the player back. This also failed. Any ideas at all? Anyone? Its hard to explain what the problem is, but I hope that identified it. I honestly have no idea if this is even possible. I know it must be, but with multiple units? What if I had 50 rines in a 30 x 30? Get my drift?
Report, edit, etc...Posted by Mini Moose 2707 on 2005-06-15 at 09:37:47
You can try the same thing you had, but use StarForge or SCMDraft to make a location smaller than 1x1.
Report, edit, etc...Posted by Oo.Deamon.oO on 2005-06-15 at 09:47:54
You can't call something once a unit is dead... The best thing I can think of right now is doing something like...

Always center a location on your main unit with some type of switch with deaths or just switches.

Current player kills exactly one marine

center location on the unit they used to kill it, create 1 protoss observer, order to a location on the center of the map, wait around 3000 ms, center location on observer and remove the observer, order all men for all players at the location the observer spawned from to the location on the observer, disable the switch to center the location on your unit, create 1 uraj crystal (corpse) at main location, enable switch.

Bad way of doing it, but it should work.
Report, edit, etc...Posted by SpiralEdge on 2005-06-16 at 21:01:25
QUOTE
You can try the same thing you had, but use StarForge or SCMDraft to make a location smaller than 1x1.


OMG, I am soooo stupid, I never even tried doing that. Its funny how I will have all these complex triggers, and overlook the most obvious solution. Thanks, that fixed my triggers right up.



Btw, Deamon, I don't quite understand your idea... It's ok though cause I got the problem fixed...
Report, edit, etc...Posted by DaarkDoom on 2005-06-16 at 21:23:06
You can use Hallucinations....

Center Location 1 on unit,that you want to kill ,and that he would left his corpse....
Trigger:
Player you want it to hapen
Condition:
Current Player suffers exactly 1 death of unit that will leave his corpse
Action:
Create 1 unit that will leave his corpse at location 1 for player 12 and aplly the properties(Hallucination)(invincible)
Wait (You can count how long Hallucination could hold on)
Preserve trigger


I dont know if its would work,but it worth a try....

And I think I`m crazy ,but you can try to disable doobat state on hallucination too wink.gif

Or u can do it like that:
Center Location 1 on unit,that you want to kill ,and that he would left his corpse....
Trigger:
Player you want it to hapen
Condition:
Current Player suffers exactly 1 death of unit that will leave his corpse
Action:
Create 1 unit that will leave his corpse at location 1 for player 12 and aplly the properties(Hallucination)(invincible)

Condition:
Always
Action
Set Energy points for any unit at Location 1 owned by any player to 100%
Preserve trigger

Report, edit, etc...Posted by in_a_biskit on 2005-06-17 at 05:12:15
You're crazy, DaarkDoom - you're not even answering the question.
SpiralEdge is trying to work out where a unit has died, when there are a large number of that unit in the same area, such that he can place his crystal on its corpse.

In any case, it sounds like SpiralEdge already has a method to use.
Report, edit, etc...Posted by DaarkDoom on 2005-06-17 at 06:09:29
Well still he can use Hallucinations.... cool1.gif
Report, edit, etc...Posted by Screwed on 2005-06-17 at 06:24:38
No you can't, read the problem, he wanted to find a unit that has just died and place a corpse there. You simply assumed its possible and blabbered on with your hallucinations and .. by looking at your triggers I simply don't know what you are trying to achieve. You don't have the slightest idea on what the question is.
Report, edit, etc...Posted by DaarkDoom on 2005-06-17 at 06:58:33
Yeah Screwed,I didnt thought of one thing - hallucinations owned by another player look like real to current... sad.gif
Report, edit, etc...Posted by Oo.Deamon.oO on 2005-06-17 at 11:26:00
... WHAT!?!
Report, edit, etc...Posted by doodle3000 on 2005-06-17 at 14:20:16
You can do it a really annoying way, put a 1 by 1 locations over every marine and once there isnt a marine there any more then create a crystal, if they are moving then center each 1 by 1 location on each marine

annoying and tidious though closedeyes.gif
Report, edit, etc...Posted by The_Shattered_moose on 2005-06-17 at 14:31:37
That wouldn't work because centering a location on marine at anywhere would center all the locations on the same marine unless once the location was centered on them they were given to a differnt player, with each marine belonging to a differnt player from 9-255 (Yeah, this probably won't work, the whole centering thing seems unlikly to work)
Report, edit, etc...Posted by DaarkDoom on 2005-06-17 at 15:07:55
But you could make as many locations as marines, but then you must to to 1 trigger on every marine...but thats nonsense....
Report, edit, etc...Posted by RandomJo on 2005-06-17 at 17:31:05
QUOTE
DaarkDoom Posted Today, 12:07 PM
  But you could make as many locations as marines, but then you must to to 1 trigger on every marine...but thats nonsense....

Yea you're right, why bother to post it then?
Anyways, I was wondering if you haven't figured it out yet, couldn't you use one location? I'ts kinda confusing to explain, but if you've played bolt's 1 location bound, i think you could use the same concept.
Report, edit, etc...Posted by in_a_biskit on 2005-06-17 at 20:21:30
RandomJo, if you continuously cycled through each marine with one location, you still wouldn't be able to work out where one died, because the location that would be centering on it is continuously moving anyway, and will never return to the place of the 'corpse' because there is no unit there.
If you wanted to scan the whole area using a grid system continuously, then that would be an interesting way to do it, but you would still need a way of recording the location of every marine - so that when one dies you can work out where it used to be.
Next Page (1)