This tutorial will teach you how to create a WC3-like experience system. So not only the killing unit gets the experience, but all nearby heroes get the experience.
Note: This tutorial wont teach you how to create a hero unit. I recommend Bifuu's tutorial for that: Complete Hero Tutorial
For non-hero units
1. Create a Behavior of type Veterancy and call it whatever you want.
2. Set the Flags to Hidden.
3. Check Ally in the value for Kills in Share Filters and set Heroic to required.
4. Change the value for Kills in Shared Fraction to 1.
5. Change the value for Kills in Shared Radius to 10.
6. Now give this behavior to all the non-hero units in your map.
7. And give every hero in your map the attribute Heroic.
For hero units
I did not find any way to exactly replicate WC3's experience system via the data editor yet, when multiple heroes are in action and one of the heroes kills a unit. The best way is to repeat every step and then change the Shared Fraction to something that suits your needs better.
He means that the XP gets shared to nearby heroes when a unit kills something that gives xp, in his case he only documents how to give xp to heroes nearby when a non-hero unit kills something, there's a link for the hero part in his post.
@Ranctifier: Yes, you just have to change the Shared Radius to something a lot higher. I think 40 or something like that might be 2.5 screens.
And the problem with the heroes is, when a hero kills a unit the xp is split equally between all the heroes in the Shared Radius (that's the way it is in WC3). But to emulate that you have to change the Shared Fraction to 1/2 for 2 heroes in the Shared Radius, to 1/3 for 3 heroes, to 1/4 for 4 heroes etc. and that's not possible with only the data editor afaik.
Create a WC3-like experience sharing system
Introduction
This tutorial will teach you how to create a WC3-like experience system. So not only the killing unit gets the experience, but all nearby heroes get the experience.
Note: This tutorial wont teach you how to create a hero unit. I recommend Bifuu's tutorial for that: Complete Hero Tutorial
For non-hero units
1. Create a Behavior of type Veterancy and call it whatever you want.
2. Set the Flags to Hidden.
3. Check Ally in the value for Kills in Share Filters and set Heroic to required.
4. Change the value for Kills in Shared Fraction to 1.
5. Change the value for Kills in Shared Radius to 10.
6. Now give this behavior to all the non-hero units in your map.
7. And give every hero in your map the attribute Heroic.
For hero units
I did not find any way to exactly replicate WC3's experience system via the data editor yet, when multiple heroes are in action and one of the heroes kills a unit. The best way is to repeat every step and then change the Shared Fraction to something that suits your needs better.
Wait, what do you mean WC3 like lvling system?
He means that the XP gets shared to nearby heroes when a unit kills something that gives xp, in his case he only documents how to give xp to heroes nearby when a non-hero unit kills something, there's a link for the hero part in his post.
Can you make the exp sharing global (or something like a 2.5 screen radius)?
@Ranctifier: Yes, you just have to change the Shared Radius to something a lot higher. I think 40 or something like that might be 2.5 screens.
And the problem with the heroes is, when a hero kills a unit the xp is split equally between all the heroes in the Shared Radius (that's the way it is in WC3). But to emulate that you have to change the Shared Fraction to 1/2 for 2 heroes in the Shared Radius, to 1/3 for 3 heroes, to 1/4 for 4 heroes etc. and that's not possible with only the data editor afaik.