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

[JASS] Detect or calculate the amount of XP gained

Status
Not open for further replies.
Level 1
Joined
Sep 26, 2007
Messages
4
Hi everybody!

I would like to implement an xp reduction similar to that in DotA i.e. if a unit is denied by the enemy you got only 40% of the xp you would gain if you killed the unit.

So i searched the forum and everything i found was the xp system that ultimatus made. but i don't like it because he calculates the amount of xp depending on the hero level only or something like that.

so my first question is: is that reduced xp gain for denied creeps DotA specific at all or is that standard wc3?? (i don't play standard wc3 therefore i don't know! :grin:) (could it be that you gain zero xp for denied units in standard wc3?? 0_o?)

my second question is: if there is no other way than manually give the xp to the hero (using AddHeroXP) then how is the xp calculated exactly? (i know ultimatus already asked this question but there was no answer -.-)
 
Level 8
Joined
Jul 23, 2005
Messages
329
First Question: Only DotA gives zero XP gain for denied creeps. They have the constants changed so that nobody get XP for any kills, then uses triggers to give out the XP ( I think )

EDIT: Its either that or they just turned off global distribution ( Also in the gameplay constants). Someone else will have to confirm tho.
 
Level 1
Joined
Sep 26, 2007
Messages
4
ok!

then if i have to do it manually by triggers: does anyone know how the xp is calculated in wc3?
 
Status
Not open for further replies.
Top