I just got done making my hero using a tutorial but I am missing how to make it so my character can spend points to increase his health and/or strength. I know how to make a new ability such as an upgraded version of stimpack and such but only to learn it not to increase stimpack more then once.
Mainly what I need to know is how can I add the attribute health/strength to my character along with making it increase with points. Also knowing how to do the save/load command would help but I expect there is a guide somewhere for that.
I have been trying to do health in the data editor as an ability I put points into but so far no luck. I made an ability called health with ability type learn. I changed "points per level" assuming that means how many points it takes to increase this skill. I then changed "vital fraction- life" to one in the "ability info". I added the skill to my hero but I can't click on it and it seems to do nothing.
basically, you give the hero a behavior called strength. This behavior must be of the type "attribute". Set the modification to give +20 max life. Now the hero will get +20 hp whenever he levels up. (I think.)
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
You can't add attributes to your hero manually unless you have a whole system set up for it, Blizzard made the data editor so that they would automatically go up per level.
As for your stimpack ability, you need to add more levels to it in the array for the ability, that way the game knows how it changes each level (costs less health? increases attack speed more?)
I made an ability called health with ability type learn.
That ability type is what allows units TO learn their abilities. It doesn't make it a learnable ability. Think of it as a house you're going in. You have to open the front door (learn ability) to get to any of the rooms inside (castable hero abilities).
What you need to do is setup your submenu system under the command card for your hero unit, I think looking at that would help you a lot to understand how your pieces all fit together.
The stimpack was an example really. So far I have my inventory system and my unit equipment system. I have not tried the whole strength/health thing again because it was annoying me.
I can share my custom attribute system with you when I get off work if you're really interested in doing one, you really need to understand the data editor to set it up though. Maybe I'll make it into a tutorial and link it to this post.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I just got done making my hero using a tutorial but I am missing how to make it so my character can spend points to increase his health and/or strength. I know how to make a new ability such as an upgraded version of stimpack and such but only to learn it not to increase stimpack more then once.
Mainly what I need to know is how can I add the attribute health/strength to my character along with making it increase with points. Also knowing how to do the save/load command would help but I expect there is a guide somewhere for that.
I have been trying to do health in the data editor as an ability I put points into but so far no luck. I made an ability called health with ability type learn. I changed "points per level" assuming that means how many points it takes to increase this skill. I then changed "vital fraction- life" to one in the "ability info". I added the skill to my hero but I can't click on it and it seems to do nothing.
I know how to increase his stats per level, but this requires no player interaction. this: http://www.youtube.com/user/OneTwoSC#p/p/173BF2C00B5085DB/0/1et41pqbJsM explains it
basically, you give the hero a behavior called strength. This behavior must be of the type "attribute". Set the modification to give +20 max life. Now the hero will get +20 hp whenever he levels up. (I think.)
@ace1177: Go
Okay, wow... you're really lost, sir.
You can't add attributes to your hero manually unless you have a whole system set up for it, Blizzard made the data editor so that they would automatically go up per level.
As for your stimpack ability, you need to add more levels to it in the array for the ability, that way the game knows how it changes each level (costs less health? increases attack speed more?)
That ability type is what allows units TO learn their abilities. It doesn't make it a learnable ability. Think of it as a house you're going in. You have to open the front door (learn ability) to get to any of the rooms inside (castable hero abilities).
What you need to do is setup your submenu system under the command card for your hero unit, I think looking at that would help you a lot to understand how your pieces all fit together.
The stimpack was an example really. So far I have my inventory system and my unit equipment system. I have not tried the whole strength/health thing again because it was annoying me.
@ace1177: Go
I can share my custom attribute system with you when I get off work if you're really interested in doing one, you really need to understand the data editor to set it up though. Maybe I'll make it into a tutorial and link it to this post.