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

Skipping Skill Points {one skill point every 2 levels... hero jumping 2 levels}

Status
Not open for further replies.
Level 2
Joined
Jan 29, 2009
Messages
21
In the map Im working on, your hero gains a skill point only once every other level. I made the whole "if (Level of (Leveling Hero)) mod (2) = 0) then (Subtract 1 Skill Point)" trigger, but if you gain more than 1 level at a time (IE going from level 3 to level 5) you get the full amount of skill points, instead of the reduced amount.

Is there any way to remedy this?
 
what about just setting it so that they get .5 a skill point every level just
or make it they get the stats through learning a skill (attribute bonus) that they can get every 2 levels and just cut out the trigger entirely
 
I don't think you can gain .5 of a skill point and seems to me Mike is concerned about skill points, not the stats.

If you disallow skill points on level completely, so on every level -1 skillpoint THEN have a variable that raises by 1 every level, you can give a skill point to hero when that variable reaches 2, then reset the variable.
 
The problem is that the way the trigger works is that it treats gaining multiple levels at once as running the event "A hero gains a level" only once, so it would still gain all the skill points but only subtract 1, so if you gained 4 at once you'd still end up with 3 skill points instead of 2, possibly even 4 if the variable happened to be set to 2 on that level.

Are there any game constants that change skill point rate?
 
you could use custom values to record how many skill points have been used.

everytime the hero learns a skill, add 1 to its custom value.

when it gains a level, set skill points equal to ((level + 1)/2) - custom value)
 
Status
Not open for further replies.
Back
Top