| 12-22-2003, 10:00 AM | #1 |
Is it possible to remove a hero's attack though triggers? In my trigger I have the hero becomming a ghost, but I see how to remove his attack. Thanks! |
| 12-22-2003, 10:56 AM | #2 |
Make a custom Item Damage Bonus ability and set the damage bonus to -9999999999999999999. Then use the Add Ability event to give it to your hero. His attack will be totally removed. |
| 12-22-2003, 11:30 AM | #3 |
Maybe I'm crazy: But I know there are abilities in the Editor that add/remove attacks. There must be an easier way then this. Have you tried using triggers to add a modified 'corrosive breath' upgrade based ability to the unit, that 'enables' 'none' of their attacks? That's a thought. Edit: Yup, real quick test, I used War Club to add a mythical index 1 attack to a huntress and remove her primary attack. This left her attackless. I set the maximum number of attacks from the warclub ability to 0, though if they can't attack, it won't matter anyway. |
| 12-23-2003, 12:58 AM | #4 |
Erm, how is that any easier than my way? |
| 12-23-2003, 01:04 AM | #5 |
How I would do it is making a version of the unit with no attack (and probably other ghostly attributes) then use a chaos ability to transform the hero to the ghost. |
| 12-23-2003, 01:11 AM | #6 |
The simplest way is to remove the 'Aatk' ability for the unit (doesn't show up in GUI, but it's there). |
| 12-23-2003, 04:27 AM | #7 |
Custom Script: call UnitRemoveAbilityBJ( 'Aatk', GetTriggerUnit() ) |
| 12-23-2003, 06:47 AM | #8 | |
Quote:
Setting the Atk to -9999999 doesn't sound very.. clean to me, that's all. |
| 12-23-2003, 07:14 AM | #9 |
i agree, that was is kindof stupid (no offense, not flame, plz dont hurt me) it would just make the atk do no dmg, so basically ur person/guy/unit would run around smashing stuff doing no dmg, the remove "Aatk" trigger would work the best. |
