I want to create an ability for my hero where when you click it you add an attribute permanently to the hero, and leveling up adds on instead of replaces the attributes.
You want to use "Upgrades" - take a look at Metabolic Boost or something like that, and how it sets 3 variables, speed, model and wireframe - you can have these upgrades "Add" instead of "set" and use the other stats instead of speed.
The thunderlord has the answer! I gt it after Working at it a long time I got your solution
1-create all your attributes (if you don't know how to do this use a tutorial on dis website)
2-create a new behavior of type buff I named mine thunder hero stat bonus
3-set maximum stack to 10000 or some level your hero will never get to
4-go in to the modificaion+ field then scroll Down and find attribute changes. Add each of your attributes and input the amounts you want to have the hero gain on each level up. I used "durability-40. Power-3. Energy-5"
5-press okay
6-create a new trigger
events-
Unit - any unit gains an experience level
condition-
(Unit type of (triggering unit)) == Hero
actions-
(use the action type "add behavior (player)")
Add "1" "thunder hero level stats" to (triggering unit) from "1"
congradgulations you have just saved ALOT of time with this as opposed to inputting each levels attributes seperatly
you will have to create a new behavior and a new trigger for each hero but it's better depending on how many attributes and how many levels you have.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have added heros that level to my map and several attributes that modify their stats using this guide: http://www.sc2mapster.com/api-docs/getting-started-with-galaxy-edit/complete-hero/ . I understand how to have their stats increase when they level up, but it replaces their stats at every level.
I want to create an ability for my hero where when you click it you add an attribute permanently to the hero, and leveling up adds on instead of replaces the attributes.
Thanks for any help :D
Anyone have any ideas? Im stuck on this one.
I am really close to figuring this out myself. I'll try to post a tutorial once I figure it out.
@xandramas:
bumping since I have the same question as OP ^^
Variables containing the information? I don't know how heroes work yet, so it's just a wild guess :)
You want to use "Upgrades" - take a look at Metabolic Boost or something like that, and how it sets 3 variables, speed, model and wireframe - you can have these upgrades "Add" instead of "set" and use the other stats instead of speed.
if you need more info just ask
@Eldrazor: Go
I have the solution to this i will be posting it later it has to be done with triggers. you don't need upgrades triggers can set abilities.
@Pandaros_Brewmaster: Go
Ummm when can I expect that post lol I don't want to manually input each stat for 35 levels for 20+heros
Looking forward to this!
@Pandaros_Brewmaster: Go
<plays jepody theme song for neodeathxp>
@Pandaros_Brewmaster: Go
Neodeathxp the jeprody song has ended I'm ready for my solution now plz lol
The thunderlord has the answer! I gt it after Working at it a long time I got your solution
1-create all your attributes (if you don't know how to do this use a tutorial on dis website) 2-create a new behavior of type buff I named mine thunder hero stat bonus 3-set maximum stack to 10000 or some level your hero will never get to 4-go in to the modificaion+ field then scroll Down and find attribute changes. Add each of your attributes and input the amounts you want to have the hero gain on each level up. I used "durability-40. Power-3. Energy-5" 5-press okay 6-create a new trigger events- Unit - any unit gains an experience level condition- (Unit type of (triggering unit)) == Hero actions- (use the action type "add behavior (player)") Add "1" "thunder hero level stats" to (triggering unit) from "1"
congradgulations you have just saved ALOT of time with this as opposed to inputting each levels attributes seperatly you will have to create a new behavior and a new trigger for each hero but it's better depending on how many attributes and how many levels you have.