| 02-19-2004, 08:49 PM | #1 |
I made a trigger that looks like this... ------------------------------------------------------------------------------------ Events - Unit - A unit is attacked Conditions - (Unit-Type of (Attacked Unit)) Equal to <Unit1> -((Attacked Unit) has buff Spirit Shield) Equal to True -((Attacking Unit) is A structure) Equal to False Actions - Set <Variable1> = (5+(2x(Level of Spirit Shield for (Casting Unit)))) -Set <Variable2> = (Random Integer between 1 and 100) -If (All Conditions are True) then do (Then Actions) else do (Else Actions) --->If - Conditions -<Variable2> Less than or equal to <Variable1> --->Then - Actions -Unit - Order (Attacked unit) to Orc Shadow Hunter - Hex (Attacking unit) --->Else - Actions -Do nothing ------------------------------------------------------------------------------------ The point is to hex the attacking unit, but only if the attacking unit is a unit (not a building) and for the chance to hex to increase with the level of the ability. But it's not working. WHY??!! AHHH! There must be something that I'm not getting, but I have no clue what I'm doing wrong. The ability was built off of Frost Armor (not autocast). If anybody can help me, plz do! |
| 02-19-2004, 09:20 PM | #2 |
Does the unit that is ordered to Hex have the ability? |
| 02-19-2004, 10:12 PM | #3 |
uh no... does it have to? |
| 02-19-2004, 10:29 PM | #4 |
A unit can't cast a move it doesn't have. You might want to create an invisible unit with the locust ability and hex. Then order it to Hex the target, and then remove it. |
| 02-19-2004, 10:46 PM | #5 |
What is the locust ability? I've never heard of that... |
| 02-19-2004, 10:50 PM | #6 |
It's an Undead ability that is used by the unit summoned by the Locust spell. It makes the unit that has it unselectable in game. |
| 02-19-2004, 10:55 PM | #7 |
ah ok thx. ill try that... |
| 02-19-2004, 10:56 PM | #8 |
Your welcome. |
