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

Custom Experience System

Status
Not open for further replies.
Level 11
Joined
Sep 14, 2009
Messages
284
Hello hello.
I'm making a custom experience system for a turn-based map. However, due to my lack of skills in math I need some help.
This problem requires some dedication to solve.

First you need to know some of the experience rules in order to help me.

• The experience is not based on the regular Hero experience bar.
• The experience required to gain a new level is always 100.
• The max level of any unit is 20.
• The higher level the player unit is, the less experience it shall recieve.
• If enemies are less level then the player units, it rewards less experience.
• If enemies are higher level than the player units, it rewards more experience.
• During battles maximum player units controlled is 3, and max number of enemies is also 3.

What I want you to help me with now, is making a formula that matches the above points. :vw_wtf:
 
Level 8
Joined
Dec 9, 2009
Messages
397
To change xp for leveling, it's in gameplay constants.
also set all of creep xp stuff to 0

for a formula it all depends on how fast/slow you want people to gain levels

when a unit dies, pick all units with a range of point of dying unit (set it to a loc variable and clean leaks)

set tempinteger = unitlevel(dying unit) - herolevel(picked unit)
set tempinteger = tempinteger + 5
Hero - Add tempinteger experience to (Picked unit), Show level-up graphics

so if dying unit is 5 and hero is 5, he'd get 5 xp
if dying unit is 1 and hero is 5, hero gets 1 xp
if dying unit is 10 and hero is 5, hero gets 10 xp
 
Level 8
Joined
Dec 9, 2009
Messages
397
Wouldn't it be easier to make it so it takes more exp to level at higher levels then? that would be the same thing.

What i made is a formula, and I was just reminding you to disable warcrafts built in exp system
 
Level 7
Joined
Apr 1, 2010
Messages
289
you could do something like the,

abs((level of dying-level of killing))/level of killing*10+some constant

if the killing unit is level 1 and dying level 3 exp gain would be 20 if dying was 1 and killing was 3 then then exp gain would be 6
 
Status
Not open for further replies.
Top