1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Heroes not earning XP

Discussion in 'World Editor Help Zone' started by mecatronic, Mar 11, 2009.

  1. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    If an enemy hero dies, i should get XP right? As far as I know, it doesn't matter how the hero died, or even if it has been killed by someone or just died (let's say he used a healing ward with a negative value).

    the problem is that sometimes when an enemy hero dies on my map, I'm not earning any xp. It happens when I mana burn other heroes and some other effects that I haven't verified yet.

    any help?

    thanks
     
  2. M4stah

    M4stah

    Joined:
    Feb 16, 2009
    Messages:
    711
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    1. If you are using custom abilities with a dummy caster, make sure you dib't make a mistake with the owner.
    2.Is the enemy hero a creep or mercenary hero? maybe you should modify XP reductiont able in gameplay contants

    Thats all my guesses. Please give some more specific information, like which heroes
     
  3. SlickR

    SlickR

    Joined:
    Jan 25, 2006
    Messages:
    112
    Resources:
    5
    Maps:
    5
    Resources:
    5
    yeah i had the same problem, didn't find out what was the cause though, i had to resort to using triggers to give xp.

    If some1 more knowledgeable does not share light on this i think you might need to resort to triggers as well.
    something along the lines of:
    a unit dies
    all conditions are true
    unit is a hero - true
    unit in range 900 of dying hero
    give custom value of dying unit to enemy of player x

    just an example, the trigger needs refining though.
     
  4. Meticulous

    Meticulous

    Joined:
    Nov 15, 2007
    Messages:
    779
    Resources:
    0
    Resources:
    0
    Only heroes owned by the unit that killed an enemy unit will gain experience. Suicides give no experience. Heroes also have to be within a certain range to receive experience (1200) unless that's been disabled or altered in your map.

    Also, neutral hostile enemies will yield no experience for heroes over level 5 unless that's been changed in your map too.
     
  5. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    well, I'm using a mana burn used by a unit that's 10000 away from the target, but the caster isn't a dummy of any kind. It stays in the game until the end.

    anyway, my field "Hero Maximum XP Gain Range" at gameplay constants is set to 50000.

    but what if the unit was killed by a common enemy?
     
  6. SlickR

    SlickR

    Joined:
    Jan 25, 2006
    Messages:
    112
    Resources:
    5
    Maps:
    5
    Resources:
    5
    Well there is your problem, unless that 10.000 is a typo.
     
  7. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    why is that a problem if I set the max range to 50000?
     
  8. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    what level is the hero you are killing? and is it owned by Neutral hostile?

    if so,
    Try to change
    Gameplay Constants --> Hero XP Gained --> Creep Reduction Table: 100
     
  9. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    no, both heroes (caster and target) are controlled by human players. And when they die by other means, they give the proper xp.

    And I tested this in many levels, from 1 to 100.
     
  10. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    so, they only dont give xp when you kill them with mana burn?

    is there some trigger interfering with your XP gain?
     
  11. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    nope. and the mana burn is not trigger based.
     
  12. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    so the 50000 range XP gain is working right?


    Hmm. very strange
     
  13. mecatronic

    mecatronic

    Joined:
    Jun 20, 2005
    Messages:
    112
    Resources:
    1
    Maps:
    1
    Resources:
    1
    yep.

    I could understand that if it were some kind of suicide. But it's a mana burn, a hero killer!

    and btw, I placed an invulnerable demon hunter just to test that, and he gained the xp from his kill.

    EDIT: I also added an allied hero next to the killed hero, and he didn't earn XP.
     
  14. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    the original mana burn ability works?

    but not your custom one?

    try to give your custom hero the original mana burn.
     
  15. Meticulous

    Meticulous

    Joined:
    Nov 15, 2007
    Messages:
    779
    Resources:
    0
    Resources:
    0
    That is very strange. And if a "common enemy" kills another player's units, your heroes will only gain experience if the killing player is allied to you.
     
  16. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,176
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Fail, thats totally wrong. Only if the last hitpoint lost is caused by an enemy it counts as a kill.
     
  17. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    but hes talking about the mana burn.
     
  18. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,176
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Umm so I missunderstood him, I see.
     
  19. BlacKcuD

    BlacKcuD

    Joined:
    Feb 5, 2005
    Messages:
    36
    Resources:
    0
    Resources:
    0
    Is the dummy which fires the mana burn a structure? If this is true it is standard that you wont be granted any xp.

    Go to 'Gamplay Constants' again and change the value "Building Kill Grant XP" to 'true'. It's quite at the top of the list.
     
  20. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,023
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    i dont think he's using any dummy abilities however.