• 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.

Controll Hero Experience Gain completely

Status
Not open for further replies.
Level 9
Joined
Nov 19, 2011
Messages
516
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.
Top