• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

hero xp

Status
Not open for further replies.

bimmer2

B

bimmer2

How to edit the xp you get from killing creeps? Please help me, im a little newbie :grin:
 
Go to Advanced on WorldEdit and click on Gameplay Constants. Then scroll down on Gameplay Constants until you find Hero XP.
 
I think hes asking how to change the amount given, I'm not too sure about this, but if you're looking for exp required to level i can give you the formula.
 
Im looking for how to change the amount of xp given for killing a creep. For exempel, i kill a spider = 20xp, if i kill a water elemental = 40xp, how to set this?
 
One way to do it would be with triggers: (first you would need to set the custom value of all your units (your custom value == your experience gained), and set Hero Experience Gain Rate to 0%. You also need a group variable (ALG) and a point variable (ALP))
  • Events
  • Unit - A Unit Dies
  • Conditions
  • Actions
  • Set ALP = Position of Triggering Unit
  • Set ALG = Units within 1000 of Triggering Unit matching (matching unit is a hero equal to true and matching unit belongs to an enemy of owner of Triggering unit)
  • Unit Group - Pick every unit in ALG and do Actions
  • Loop - Actions
  • Hero - Add (Custom Value of Triggering Unit/Units in ALG) to picked unit
  • //endloop
  • Custom Script: call RemoveLocation(udg_ALP)
  • Custom Script: call DestroyGroup(udg_ALG)
--donut3.5--
 
I cant find this one, please help me.
Code:
Set ALG = Units within 1000 of Triggering Unit matching (matching unit is a hero equal to true and matching unit belongs to an enemy of owner of Triggering unit)
 
Lol guys, killing the little newbie (his words, not mine) with your ubar leet triggers. It has to do with the level of the unit. You know how creeps show their levels when you mouse over them? Same thing.

The field is something like Stats - Unit Level. Under Advanced - Gameplay Constants (I hope that's it, no WE on this comp) there exist several fields with Unit Experience in their names.

There is one called something like Level Factor, the one that you want has a default setting of 25. That 25 is how much experience regular units give per level. So then a level one unit gives 25 EXP, a level 2 gives 50, etc.

There is a field however, that modifies that to give a percentage of the other field along with the bonus, I'm sorry that I don't know either the name or default, you will want to set that to one.
 
Status
Not open for further replies.
Back
Top