Hey i just got a really good idea for a map, but in order for it to work i need to know a trigger explanation of how to 1)detect a lockdown, 2)center a location over it, and 3)get rid of the lockdown effect. Thats all i need and i can do the rest.
P.S. if you want to be really helpful, can you tell me the location size of the screen while playing SC
Thanks a bunch in advance
you could detect if the unit stops moving o.O
(this is if the unit is always moving, of course)
QUOTE(SomeIdiotNerd @ Jan 7 2007, 06:19 PM)
P.S. if you want to be really helpful, can you tell me the location size of the screen while playing SC
[right][snapback]611148[/snapback][/right]
20x12
Thx Insane
and no they would not always be moving
ADDITION: i do not need to know how to get rid of the lockdown effect, can't use EUD actions forgot XD
here's a short scenario... if a mechanical unit attacks a ghost, the ghost can counter attack it with lockdown. if a medic is near the unit that is locked down, it can remove it. the computer ai might be wierd with this though. you can probably send a mechanical unit, then order it to attack a ghost with a medic nearby.
true but do you think the comps AI will allow that? i've never seen a comp actually restore a unit in a melee game before, and that would be a major waste of locations.
anyone know any EUD experts i can pm? Because i have a "B" plan if this doesn't work out, but i liked this idea better.
QUOTE(SomeIdiotNerd @ Jan 8 2007, 04:44 PM)
true but do you think the comps AI will allow that? i've never seen a comp actually restore a unit in a melee game before, and that would be a major waste of locations.
anyone know any EUD experts i can pm? Because i have a "B" plan if this doesn't work out, but i liked this idea better.
[right][snapback]611524[/snapback][/right]
well i have seen them use it, it is in there ai as long as they have the spells available for them to use.
http://www.staredit.net/index.php?tutorial=175QUOTE
- Lockdown -
*Ghost will keep locking down all mechanical units (including hero ones) around if the ghost is being attack (Note: If a computer ghost had Irradiate on it, it will go mad and start looking down everything nearby)
*Will usually lockdown around 2 units attacking other units other than the ghost and then will spend its time trying to destroy them with its shotgun
*Sometimes a ghost will just lockdown non hostile mechanical units nearby
QUOTE
- Restoration -
*Seem to only use this on locked down units and ones stuck from maelstrom
*May use it only once or not at all even but you can provoke them to use it over and over if you attack the medic with something like a ghost
*They will use it on hero units but not allies
*Using a Terran melee AI seems to encourage more use
well thx for telling me, but that doesn't help me out, i don't want the players to be attacking medics until they can finally do a triggered lockdown attack.
anyway i think i'll just start working with my plan B, but it would be extremely helpful if you guys can hook me up with an EUD expert
QUOTE(SomeIdiotNerd @ Jan 7 2007, 06:19 PM)
Hey i just got a really good idea for a map, but in order for it to work i need to know a trigger explanation of how to 1)detect a lockdown, 2)center a location over it, and 3)get rid of the lockdown effect. Thats all i need and i can do the rest.
P.S. if you want to be really helpful, can you tell me the location size of the screen while playing SC
Thanks a bunch in advance
[right][snapback]611148[/snapback][/right]
Here, I'll be your EUD expert.
- Ok first, this depends on how many players are in the game. You need the same number of computer players as human controlled players, unless you want to use different lock downing units, such as the hero ghosts.
- After making that decision, create an EUD condition that detects the energy of the computer controlled ghost. Now depending on how you did this, a certain player's ghost OR a certain type of ghost would have to lockdown the human-controlled unit.
- Once you have that EUD condition set down, it's pretty basic, you center the location based upon the above information, set the mana of the ghost to 100%, remove and then create ANOTHER unit that is not locked down, and repeat.
- There is also another way, but this would have to have that the player's locations NEVER touched, you would only need one type of ghost, and one computer player. You then scan the location for the ghost that lockdowned a unit and by using large locations centered on the human controlled unit that is locked down you detect where the ghost used lockdown, you then finish the trigger by setting the ghosts' manas to 100% and removing and recreating another unit at the location you centered on that unit.
Your description is a little vague.. so if you need more assistance, please feel free to PM me. Hopefully this got your brain thinking a little of how you want to do this.
You do know that lockdown is one of many status flags in the unit properties section. The only problem with using EUD conditions to detect lockdown is that you would need to know the LocalID of the any and all units that you need to detect when they get locked down. If the units you want to detect as locked are spawned via triggers, it is almost impossible unless you can fix the LocalID of the unit doing the locking down and figure it's energy loss. If both LocalIDs are variable, then the use of EUD conditions is virtually impossible.
It's not virtually impossible, about 8/10 on the degree of difficulty. If you have the time to do it, go for it, otherwise don't even bother...
Just so you know, the screen in SC is exactly 20 grid squares across, but more like 12.5 vertically. I always use 13.
Thx nobody- =) ok i'm sorry i was vague with my explanation, heres a better one
i'm making a map with 1 player that has 1 ghost. in order to do certain attacks/orders he has to lockdown the place he wants to attack/command (i have that part figured out by the way) the unit will be preplaced on the map, i will make him the first unit to solve the unit ID issue. now what i want the human controlled ghost to do is that when he fires a lockdown at the thing he wants to attack he will have a selected event that is going to happen when the lockdown gets there.
So basically, i have a human controlled ghost placed on the map first that will lockdown to attack a thing/place. but i need to know how to center a location on the lockdown effect.
provide anymore information i need to give you and it would be great if i could get the triggers.
QUOTE(n0b0dy- @ Jan 10 2007, 12:18 PM)
It's not virtually impossible, about 8/10 on the degree of difficulty. If you have the time to do it, go for it, otherwise don't even bother...
[right][snapback]612074[/snapback][/right]
Do you even know how EUD conditions work? You post seems to indicate that you don't.
QUOTE
i'm making a map with 1 player that has 1 ghost. in order to do certain attacks/orders he has to lockdown the place he wants to attack/command (i have that part figured out by the way) the unit will be preplaced on the map, i will make him the first unit to solve the unit ID issue. now what i want the human controlled ghost to do is that when he fires a lockdown at the thing he wants to attack he will have a selected event that is going to happen when the lockdown gets there.
The only way you can use EUD conditions to detect which unit gets locked down is to have a condition for each of the possible LocalIDs of the units being locked down (NOT the ghosts). Only if those are constant do you have even a hope (short of writing 1700 triggers, one for each LocalID). Secondly, you're going to have to take into account the fact that detecting interior bytes is problematic.Thx a bunch, thats all i needed to know, i will work with my plan B.
Thx for everyones help, and this thread may be closed