HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

hero levels and experience - setting experience below lvl up point after level up?

02-01-2003, 05:03 PM#1
Guest
I haven't tried this yet, but, I want to "stretch out" the levelling process for a hero. There are two ways to do it, I think, both of which I will likely employ:

The first is, I change the experience rate % to something low.. like 5%.

The second thing is what I'm asking: once a hero levels up, is this permanent or can they "decrease" in levels? what I mean is..
eg. levelling to level 2 requires 200 experience.
When the hero levels to level 2 (and subsequently has more than 200 experience), if I put in an event like this:
event : hero levels
condition: hero level = 2
action: set hero experience = (some number below 200)

will the hero stay at level 2? If so, I can force them to gain some more experience before getting to say... level 3!
02-01-2003, 05:10 PM#2
DaKaN
I belive the hero will not fall below the set exp for the start of the level. but i am not totaly sure. ez enough to make a 64x64 map. have chat triggers that set exp to 200, then back to 0 and see what happens
02-01-2003, 05:13 PM#3
FyreDaug
it wont work
02-01-2003, 06:31 PM#4
Dinadan87
You could always change the EXP gain rate when the hero levels. So perhaps you think the time it takes to get to level 2 is fine, but getting to level 3 should take longer, just make it lower the EXP gain after the hero reaches level 2. If you want him to get a specific amount extra to level you just have to do the math and figure what % to use to make it act like you need that more.
02-01-2003, 06:52 PM#5
Guest
Alright, thanks for the info guys. :D
02-01-2003, 09:21 PM#6
Guest
What they said is not correct, heros CAN fall below the minimum experience for a given level. You can set a hero's experience to any amount between 0 and the level 10 exp cap, however lowering a hero's experience will NOT lower it's level. This will just zero out the hero's experience bar, and it will not begin to move until the experience reaches that level's minimum.

IE: Level 2 hero can be set to have 0 exp. It's bar will appear exactly the same as if the hero had 200 exp (no progression). Hovering over the bar will show the correct ammount, 0/500 (experience needed for level 3).

The bar will not begin to show progress until the hero has more than 200 exp.
02-01-2003, 10:57 PM#7
Guest
I may be wrong, but I think if you set the xp gain % it applies for the player, not just a specific unit. So every hero of that player would be affected. Bummer.

Just use the tried and true method of making a new custom unit for each 10 levels you want the hero to be able to gain.

Care.
02-04-2003, 12:20 AM#8
Guest
Does anyone know whether this method could be used to give a hero more than 10 skill points?

For example, at level 10, set the hero's level back to 9 and set exp to the beginning of level 9; ad infinitum.

Would the hero retain all skills, but gain another skill point when it reaches level 10 again?
02-04-2003, 01:10 AM#9
DaKaN
if a hero becomes lvl 9, you cannot make him go back to 8, but from what i learned here, you can set the exp back to 0 and have them get all the exp back, but they will still be a lvl 9 hero.
02-04-2003, 03:27 AM#10
Hakujin
You can even set a hero's experience below zero (using set Hero exp = (Hero exp - X)) and it will show a wierd number in the XP bar like 40983452/200 but it appears to just be a graphical glitch because once the hero gets back to zero it resets correctly to 0/200.
02-05-2003, 05:12 AM#11
Phil_123
Quote:
Originally posted by Hakujin
You can even set a hero's experience below zero (using set Hero exp = (Hero exp - X)) and it will show a wierd number in the XP bar like 40983452/200 but it appears to just be a graphical glitch because once the hero gets back to zero it resets correctly to 0/200.
-1 = 4294967295
-2 = 4294967294
-3 = 4294967293
etc.
02-05-2003, 03:56 PM#12
Spectralist
Quote:
Originally posted by Elfis
Does anyone know whether this method could be used to give a hero more than 10 skill points?

For example, at level 10, set the hero's level back to 9 and set exp to the beginning of level 9; ad infinitum.

Would the hero retain all skills, but gain another skill point when it reaches level 10 again?


you can do that useing the action

Hero - set (unit) Hero-level to ((Hero lvl of(unit)) +/- #, show/hide level up graphics
02-05-2003, 05:11 PM#13
Guest
Spectralist, Do you happen to know the jass script for that trigger? I need to use jass for any triggers since I am doing custom mpq, but I am not jass proficient :(
02-05-2003, 05:22 PM#14
Guest
Elfis: As far as I can tell, Hero leveling (and by extension skill points) is a one way street. There is no way to get to a previous level, and so there is no way to get more then 10 skill points. I have heard that it is possible to create a mod that allows heros to level up to 15, but that they stop getting skill points at level 10.
02-05-2003, 09:31 PM#15
Spectralist
Quote:
Originally posted by Elfis
Spectralist, Do you happen to know the jass script for that trigger? I need to use jass for any triggers since I am doing custom mpq, but I am not jass proficient :(


not sure about jass at all but if it is trigger custem text and i think it is then this is that action it has no events or conditions though

call SetHeroLevel( GetTriggerUnit(), ( GetHeroLevel(GetTriggerUnit()) + 1 ), true )

its set for the triggering unit and show lvl up graphics

Lockdown- i'm pretty sure this can give you extra skill points