| 06-22-2005, 04:15 AM | #1 |
Is there an ability that you can add to a unit to keep bash from affecting it? I tried spell immunity (neutral hostile), but it just blocks casted spells. |
| 06-22-2005, 10:56 AM | #2 |
There's no way to make a unit avoid bash. However, you could take away bash from the bashing unit whenever it attacks a unbashable unit, and re-add the ability whenever it attacks someone else. |
| 06-22-2005, 11:02 AM | #3 |
errr, you can trigger the bash ability?? All you would have to do is make the math thingy giving the attack a %, but make it so it wont work if your attacking a wrong unit (bash immune). if i make no sense...sry, its late |
| 06-22-2005, 05:28 PM | #4 |
Yup. Thats the best way. You can do somthing as simple as "(Random integer number between 1 and 10) Equal to 10" as a condition. That way you have a 1 in 10 chance (10%) to do the effect. In this case bash. Just add 'Unit not equal to spell Immune unit" |
| 06-23-2005, 02:08 AM | #5 |
Errr tough time making the trigger for it. It's for an item that has bash ability 15%. If you have time, maybe you could show me exactly how to make the trigger. |
| 06-23-2005, 07:57 AM | #6 |
There are plenty of ways to do this, heres a real basic one. Code:
10% Bash
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Triggering unit)) Not equal to IMMUNE-UNIT
(Random integer number between 1 and 10) Equal to 1
Actions
Unit - Create 1 BASH-DUMMY for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Order (Last created unit) to BASH-ABILITY (Target unit of issued order) |
| 06-23-2005, 02:16 PM | #7 |
Guest | "(Unit-type of (Triggering unit)) Not equal to IMMUNE-UNIT" Change this to "(Unit-type of (attacked unit)) Not equal to IMMUNE-UNIT" Just to patch up possible leaks. |
