| 08-23-2006, 08:12 PM | #1 |
I don't want an upgrade, I want an ability that increases the attack range of units (so I can put it on an item). I can not figure out a way to do this. I tried triggers, but it appears with triggers you can't change unit stats. Is this impossible without JASS or something? [edit] It appears two of the same threads were made on accident. Can a mod delete this? |
| 08-25-2006, 10:27 PM | #2 |
if they are already ranged all you should have to do is put something like trueshot aura on them... If you want to do it to a melee char you should just change their range in their unit stats to like 105 or whatever isnt considered "melee" but i'm sure it could be done in custom scripting if you reset unit raw data... its complicated though i recommend just change out of the melee distance and using trueshot aura without buffs auras or bonus attacks. |
| 08-25-2006, 10:37 PM | #3 |
Ignore every single thing oxide he said because it is all utterly nonsense. |
| 08-25-2006, 11:54 PM | #4 | |
Quote:
First, this should have gone in the other topic, this one was an accident. Second, trueshot aura doesn't improve range, only damage. |
| 08-26-2006, 12:37 AM | #5 |
Try having all of your ranged unit's set to a really high attack range (Like 9000). Then use the function "call SetUnitAcquireRange(YourUnit, NewAttackRange)" to whatever range you want whenever they acquire/lose the item or some such. This can be done in gui as well. |
| 08-26-2006, 03:54 AM | #6 |
Setting the Acquisition Range only affects the range at which units automatically target units. Players can still order units manually and they'll attack from their attack's range. You could try using orb abilities to enable attacks of different ranges on a unit, but I never tried it. Personally, I would just make another unit with a different range and replace them when needed. |
| 08-26-2006, 04:30 AM | #7 |
Wrong, actually. A unit's attack range is limited by their acquisition range if they are not melee. Try giving a unit 500 acquisition range and 800 attack range. In game their attack range will be 500, not 800; the UI even shows it as 500. |
| 08-26-2006, 04:33 AM | #8 |
Yeah, Rising was right. I had a "lightning tower" in my old map and {(acquisition=600) + (range=1000) = (actuallyrange=600)} |
