Staredit Network

Staredit Network -> UMS Assistance -> Invincibility inside a location
Report, edit, etc...Posted by Veta on 2006-03-20 at 05:27:19
Units can have invincibility.


What I want to do, and probably could do if I bothered messing with triggers long enough, is: Make Location X center on unit X and make all other units, let's say unit Y's in location X (which is centered on unit X) become invincible however all of this takes place in Location Y which contains all units. Now how do I make it so units in or under location X (and location Y since location X is in Y) become invincible and units under solely location Y are not invincible?

So far I just tried make it go through a kind of pattern of invincing, where is make all units in location X invincible and then wait 1000ms and make all units in location Y not invincible; don't know why but it doesn't work. helpsmilie.gif
Report, edit, etc...Posted by Kupo on 2006-03-20 at 06:25:09
Just do "Bring atleast 1 men to location x"

then actions

Then

Bring "current player brings exactly 0 men to location x"

actions

preserve
comment
setinvince"disable"
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 06:34:19
QUOTE(Veta @ Mar 20 2006, 04:26 AM)
Units can have invincibility.
What I want to do, and probably could do if I bothered messing with triggers long enough, is:  Make Location X center on unit X and make all other units, let's say unit Y's in location X (which is centered on unit X) become invincible however all of this takes place in Location Y which contains all units.  Now how do I make it so units in or under location X (and location Y since location X is in Y) become invincible and units under solely location Y are not invincible?

So far I just tried make it go through a kind of pattern of invincing, where is make all units in location X invincible and then wait 1000ms and make all units in location Y not invincible; don't know why but it doesn't work. helpsmilie.gif
[right][snapback]449127[/snapback][/right]



If you are trying to get more than one unit invincible it is a lot harder but what you should do is set a trigger for the location to follow the unit you wat invincible and have a trigger to set unit invincibility in that location so it will always be invincible. Have another trigger for the units in the other location to not be invincible in case they somehow walk through the other location once.


Say the location you have for invinsibily is invincible and the unit you want invincible is a marine

Trigger to follow unit:

Always

Center "invincible" on "marine" in anywhere
Preserve trigger


Trigger for invincibility:

Always

Set invincibility for "marine" at "invincible" owned by current player
Preserve trigger


If you want more than one. Just keep doing that wit multiple locations and multiple triggers for each unit. Time consuming but it sounds like a good idea!
Report, edit, etc...Posted by Veta on 2006-03-20 at 18:57:06
No no no! I have over 200 units used in my map for players and that just wouldn't do! I have to manage getting *all* units in that location Invincible but not the units outside. None of you really got it on the spot.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 18:59:56
umm 200 units that are all going to be invincible or 200 with like 50 vincible?
Report, edit, etc...Posted by PCFredZ on 2006-03-20 at 19:17:12
Set all units in Location Y (big location) to Not Invincible
Set all units in Location X (small moving location) to Invincible

Put these in a single trigger, in this order.

Throw in a Preserve Trigger.

Tada.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 19:36:59
but he needs to some how keep all those units in seperate locations, that is impossible


the only way i can think of, is just to make like 200 locations and follow units. That is the only way i think it will work.

Or.

You could create the units at the beggining before the game is even started and set invinsibilty while ypou place the units on the map. But if you buy them in the game set invinsibilty when you buy them, then have random location flying from unit to unit to either enable or disable invincibility!
Report, edit, etc...Posted by Veta on 2006-03-20 at 19:41:32
QUOTE(7-7 @ Mar 20 2006, 06:36 PM)
but he needs to some how keep all those units in seperate locations, that is impossible
the only way i can think of, is just to make like 200 locations and follow units.  That is the only way i think it will work.

Or.

You could create the units at the beggining before the game is even started and set invinsibilty while ypou place the units on the map.  But if you buy them in the game set invinsibilty when you buy them, then have random location flying from unit to unit to either enable or disable invincibility!
[right][snapback]449453[/snapback][/right]

Eh I decided to opt with making a hyper heal trigger, where units in location x just heal quickly and can't die from two hits; only one.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 20:05:22
umm i dont get what you just said but its your game and your idea and as long as you get it I guess you are all set!
Report, edit, etc...Posted by Zeratul_101 on 2006-03-20 at 20:35:32
QUOTE(7-7 @ Mar 20 2006, 06:36 PM)
Eh I decided to opt with making a hyper heal trigger, where units in location x just heal quickly and can't die from two hits; only one.
[right][snapback]449453[/snapback][/right]


dude, pcfredz already gave you the answer



uninvincible everyone in location y(and therefore also in location x)
invincible everyone in location x





this also works in reverse, just remeber the effect that affects the majority comes first
Report, edit, etc...Posted by PCFredZ on 2006-03-20 at 20:48:15
QUOTE(7-7 @ Mar 20 2006, 07:36 PM)
but he needs to some how keep all those units in seperate locations, that is impossible
[right][snapback]449453[/snapback][/right]

You misinterpreted his situation.
QUOTE(Zeratul_101 @ Mar 20 2006, 08:35 PM)
dude, pcfredz already gave you the answer
uninvincible everyone in location y(and therefore also in location x)
invincible everyone in location x
this also works in reverse, just remeber the effect that affects the majority comes first
[right][snapback]449523[/snapback][/right]

It does not work in reverse. tongue.gif
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 21:01:27
but there is no way to make sure that all the units to keep invincible will stay in that location. There is just no way you have to make seperate locations.
Report, edit, etc...Posted by Urmom(U) on 2006-03-20 at 21:05:55
He didn't say they have to stay in the location. Let me break his trigger down for you:

QUOTE
Set all units in Location Y (big location) to Not Invincible

This makes is so that all units will be normal.

QUOTE
Set all units in Location X (small moving location) to Invincible

This then makes the precise invincibilities. The units in the location will become invincible. Now this trigger has to go through the cycle until it is run again. It will make all the units normal again and then make the units in the location invincible so that units that moved in/out of the location will have their status toggled.
Report, edit, etc...Posted by Zeratul_101 on 2006-03-20 at 21:13:24
QUOTE(PCFredZ @ Mar 20 2006, 07:47 PM)
It does not work in reverse. tongue.gif
[right][snapback]449541[/snapback][/right]


are you sure?

cause i have a map where units are constantly invincible except a certain location when a certain condition is met
Report, edit, etc...Posted by Urmom(U) on 2006-03-20 at 21:15:39
It shouldn't work because you are setting the units in the location and then making them normal again. I may be wrong though because the trigger may go through the cycle fast enough for it not to be noticable.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-20 at 21:53:25
i still thin it would be easier, maybe more time consuming but it will work, i promise, lots of triggers, more work=better maps!!!!!!!!
Report, edit, etc...Posted by MapUnprotector on 2006-03-20 at 22:02:33
Simplicity should also be valued.

PCFredz method should work, and the only locations you would need are the specific locations for where the units will be invincible. If every other unit besides the units in those locations are supposed to be uninvincible, then you can use Anywhere as the first location.
Report, edit, etc...Posted by Zeratul_101 on 2006-03-20 at 22:49:19
not only is using one location for every unit impossible but it leaves you with only 55 locations and if its a bounds or rpg, then this is especially crippling

irt urmom and pcfedz

okay, my bad, my method uses two seperate triggers but it does work properly. didn't notice the part where pc said one trigger
Report, edit, etc...Posted by Mp)7-7 on 2006-03-21 at 06:44:07
but if one of the invincible units walks into the uninvincible location it will change unitl you move it back and you can die that wouldnt be too good of a bug to fix. I stick with my method!
Report, edit, etc...Posted by Crispie on 2006-03-21 at 10:06:49
Trigger
Players:
¤ Current Player
Conditions:
¤ Always
Actions:
¤ Set all units in location "X" invincible.
¤ Preserve Trigger




Trigger
Players:
¤ Current Player
Conditions:
¤ Always
Actions:
¤ Set all units in location "anywhere" not invincible.
¤ Wait 500ms
¤ Preserve Trigger



With hyper triggers anyone who is invincible in the location will only be not invincible for a short enouph time that no one can do damage. Its the best I could do flexibility wise, although under certain situations other methods are better.
Report, edit, etc...Posted by MapUnprotector on 2006-03-21 at 15:03:25
QUOTE(7-7 @ Mar 21 2006, 07:43 AM)
but if one of the invincible units walks into the uninvincible location it will change unitl you move it back and you can die that wouldnt be too good of a bug to fix.  I stick with my method!
[right][snapback]449766[/snapback][/right]


Well I think the point is that if you are out of the invincible location you are not invincible, and if you are in the location you are invincible. So therefore even if a unit was in the invincible location and became invincible, based on what Veta was saying in his first post, then those units should uninvincible upon leaving that location.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-21 at 15:10:45
That is true, but I think what he wants is for the units to stay either invincible or vincible



If I am wrong, Veta tell me!!
Report, edit, etc...Posted by PCFredZ on 2006-03-21 at 20:43:52
Holy crap. Here's a demo map. Can't believe it takes this much effort to explain a simple point.

ADD: note that there is a delay in the transition when the Invincibility status switches, even with Hyper Triggers.
Report, edit, etc...Posted by MapUnprotector on 2006-03-21 at 22:50:21
PCFredZ, we weren't debating about whether your method works or not.
Report, edit, etc...Posted by Mp)7-7 on 2006-03-22 at 17:13:13
Depending on what Veta wants he will have to decide what idea he will use!

ADDITION:
Depending on what Veta wants he will have to decide what idea he will use!

ADDITION:
Depending on what Veta wants he will have to decide what idea he will use!
Next Page (1)