• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Controll Hero Experience Gain completely

Status
Not open for further replies.
Set experience gained for kill to 0 (at game constats). Then make a recipe which converts unit level to exp. Example:

==========
For solo RPG
==========
Even - Unit dies

Set exp = MAX(0,(Level of unit (dying unit)) - (Level of (killing unit))).
Add experience - Add exp experience to killing unit.


==========
For multi RPG
==========
Even - Unit dies

Set exp = MAX(0,(Level of unit (dying unit)) - (Level of (killing unit))).
Pick every unit in reange of 800 of dying unit
-If picked unit is hero = true then
--Add experience - Add exp experience to picked unit.


==========
For melees
==========
Even - Unit dies

Pick every unit in range of 1000 of dying unit
-If picked unit is hero = true then
--Set exp = MAX(0,(Level of unit (dying unit)) - (Level of (picked unit))).
--Add experience - Add exp experience to picked unit.
 
Status
Not open for further replies.
Back
Top