HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Exp Gain Range Problem (!?)

06-12-2004, 10:16 AM#1
PatruX
I got a little problem and I would like some help to solve it.

Let's say it like this, we have a 64x64 map, divided into two parts with only Path Blockers. There are two Heroes on each of the blockers, so basicly they can't get to eachother. Then there will be attacking units spawned to attack those heroes. But I got a little problem right there.

If those two heroes would be enemies they would be able to use their abilities to damage eachother.

Though, If they would be allied they would share their exp since they are pretty close to eachother. Though I can't go to Gameplay Constants and reduce the exp gain range below ~1500 since I have Flame Strike and other abilities with cast range 1000. So if I would have exp gain range below ~1500 the killing hero would not get exp for killing those "far away" units.

The only thing I can think about is giving the hero exp for every unit by triggers, but that would make things a lot more complicating.

So I wonder if anyone have a good answer to this. ;)
06-12-2004, 01:14 PM#2
Anitarf
Well, you could make it so that the two heroes can't damage one another. Make them both spell immune (of course, that way, no attacking unit will be able to use spells on them as well...) and if they have ranged attacks, make it so in the object editor that they cannot target heroes with them (or, if that's not possible, go to gameplay constants and make hero attacks do 0% damage to hero armor). Then, the two heroes can be enemies and they won't share experience.

Other than that, you could try making the gap between the two engagement zones bigger...
06-12-2004, 01:19 PM#3
johnfn
If the heroes are enemies, you can probably trigger it to recognize that they would be attacking each other with abilities and stop them. Just do this by a trigger that recognizes if a ability has been cast, and then check to see if it is in a region sized 500,500 (more or less) centered on the unit.

If you have no idea what I'm talking about, just ask.
06-12-2004, 03:05 PM#4
Panto
How about having the heroes' players be Neutral towards each other? And put "Not Hero" or whatever in their legal attack targets.
06-13-2004, 12:28 AM#5
PatruX
Thanks, I'll try all your solutions and see which one of them that fits the best.