| 03-04-2004, 06:05 AM | #1 |
Is it possible to change a units attack from melee to range and back. I've tried several things like using orbs, messing with attack1 and attack 2, but nothing seems to work. Any Ideas? Rebel Scum |
| 03-04-2004, 07:38 AM | #2 |
The only thing that comes in my mind is the War Club skill of the Mountain Giant... it disables attack 1 and enables attack 2 for a set number of attacks and it eats a tree... not very versatile, I guess... |
| 03-04-2004, 10:15 AM | #3 |
hrmm warclub. Good idea, I havn't tried that one yet. Mucho Gracius (if it works) Rebel |
| 03-04-2004, 02:02 PM | #4 |
Also you can add and remove the shadow orb ability. |
| 03-04-2004, 03:15 PM | #5 |
You can make two custom upgrades that have the effect: enable attacks Set one to attack 1 and one to attack 2 Then make attack 1 for the unit melee and attack 2 ranged and set upgrades used to the custom upgrades. Then make a trigger that changes the tech level for the upgrades when you want it. |
| 03-04-2004, 03:19 PM | #6 |
Upgrades affect every of the player's units though. the shadow orb ability is probably the easiest thing, blizzard does that to give melee heroes the ability to attack air units. |
| 03-05-2004, 05:21 PM | #7 |
Checked it out and vexorian's method works quite well in case anyone was wondering. Nice job |
| 03-06-2004, 09:00 AM | #8 |
Well if those don't work properly i think there could be a hugely complex trigger you could use Events Generic Unit Event - Unit finishes casting an ability (the ranged melee ability) Conditions Hero Level Comparison - Hero level of triggering unit = X Unit Comparison - Unit = bleh (bleh being the variable created for that unit) Actions Unit - Replace Replace {Triggering Unit} with ( a pre-created level X hero) You will have to create a trigger for every level that the hero has but if all fails it is a last resort. |
| 03-06-2004, 09:49 AM | #9 |
That is just damn complicated, when you use the "replace unit" command, the level of the hero remains the same as well as keeping the items, so you don't need to preplace anything... |
