| 05-09-2007, 05:32 PM | #1 |
And Hello again. My problem is the following: My units completely ignore heroes. That means if there are 10 units and 1 hero, they run past the hero and attack the units.. and if there is one unit and the hero, they still run all past the hero to get to that one unit. I remember that it worked perfectly fine last time (err.. some years ago...) I made a map. If I need some JASS Code (im doing it GUI only) and/or someone can help me... here is what I exactly want to do: Id like to have units handle heroes like other units aggro wise, but I want heroes to attack heroes with a higher priority. You wouldnt believe how frustrating it can be; on one side complex spells done gui only work perfectly fine first test and on the other side you lack the most basic stuff =( |
| 05-12-2007, 11:05 AM | #2 |
bump. |
| 05-12-2007, 06:40 PM | #3 |
You could have units pick targets based on random chance (Random integer number from 1 to 100 thingeys), and just have the chance for heroes to be a bit higher. I can't see why they'd ignore the hero altogether, though... |
| 05-12-2007, 06:43 PM | #4 |
Who owns the units? |
| 05-12-2007, 08:21 PM | #5 |
Computer brown and player red while testing. They dont exactly "ignore" the hero: if there is another possible target, they will go for the other target instead of the hero. pretty odd when melee units run AROUND a melee hero to hit a unit behind it.. all the time. Like hero is surrounded and will die in 2-3 more seconds - but no another footman showed up and they all turn around and leave the hero alone. Computer heroes fought the hero only if attacked first (units, not heroes, didnt even fight back if attacked - if another unit was within ~300 range). Overall pretty weird, I decided do handle everything now with triggers. Pretty annoying in my map, but oh well. |
| 05-12-2007, 11:16 PM | #6 |
Increase the priority of heros in the object editor? (a shot in the dark, really, but it can't hurt to try) |
| 05-12-2007, 11:52 PM | #7 |
That actually doesn't make sense. If you've triggered spells, make sure the spells make the CASTING HERO deal the damage. Otherwise they don't prioritize the hero as a threat and target. Also, heroes with higher ranges tend to become higher priority too. I can't see any case that a hero would be "ignored." If you could, post the map? Would be worth a look. |
