• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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