| 12-29-2003, 03:06 PM | #1 |
Ive made a spell who makes all units nearby invisible (permanent). Now im trying to make a trigger who makes them loose the invisiblity when they do something else then move (like the normal "invisibility" spell, "if the unit attacks or casts a spell it will become visible"), is that possible? there are triggers for the rest, i only need the event, like this: event: unit with permanent invisibility does somethign else then attack actions: remove permanent invisiblity from triggering unit plz help |
| 12-29-2003, 03:12 PM | #2 |
You could create a trigger with events for every type of order and make a condition that test if 1) the order is not move, hold, stop AND 2) if the order is smart, the order DOES NOT target an enemy or a doodad |
| 12-29-2003, 09:20 PM | #3 |
Event - Unit is issued an order targeting an object Condition - Issued order is not equal to move and unit is equal to unit in unit group Action - make unit visible/remove permanent invisibility. |
| 12-29-2003, 10:48 PM | #4 |
Code:
Event - Unit is issued an order targeting an object Condition - Issued order is not equal to move and unit is equal to unit in unit group Action - make unit visible/remove permanent invisibility. |
| 12-30-2003, 12:02 AM | #5 |
YOu add the AFFECTED units to a unit group. Sigh* People need to take a minute and think. |
| 12-30-2003, 06:57 AM | #6 |
Ah np i got it, i used this: Stealth End Events Unit - A unit Is attacked Conditions Actions Unit - Remove Stealth (invis) from (Attacking unit) I know you would have come up with that much quicker then me, if i wud have asked for that. Anyway, it works. Thx for replying=) |
| 12-30-2003, 02:21 PM | #7 |
Hey that wont work will it? How will they be attacked if they have invisablity on? |
| 12-30-2003, 02:51 PM | #8 |
the ability "permanent invisibility" is the same as level 3 feral spirits have. They are invisible all the time except attacking. If they attack and run they become invisible again. So they can attack AND keep invisibility without the trigger i just posted=) |
| 12-30-2003, 03:25 PM | #9 |
lol, i misread it. I thought you put if the unit got attacked it would remove it from them. But its the otehr way around. |
| 12-30-2003, 03:57 PM | #10 |
:D |
