So I have four abilities that can be leveled up to 4, but I would like to do them in a similar style to warcraft with the following restrictions:
Level 1 Ability - No Requirment
Level 2 Ability - Requires Hero Level 4
Level 3 Ability - Requires Hero Level 6
Level 4 Ability - Requires Hero Level 8
I've seen in my Learn ability that I can place a Requirement on each ability that you can learn, but as far as I can tell, it's only one per ability, not on per ability level .
I imagine I could use some formula to make one requirement work for each ability tier, but I'd really prefer to make 3 separate ones if it's possible to work that way. I could actually create clean tooltips for them that way, and also if any special cases come up down the road, it will be much easier for me to work around this.
Also, when I'm referencing the ability level in my requirement, does anyone know if the first learned level counts as 0 or 1?
The video didn't answer my question unfortunately, but I think I'm just gonna go with a single requirement for each ability using the formula. Now the only thing I'm wondering is how can I get my tooltip to reference the Ability Level?
I know it's something along the lines of <d ref="Ability,MyAbility,Level"/> but I'm not sure what that last value should be, does anyone know the field name for an ability's currently learned level?
Your requirement needs to compare the ability level multiplied by a constant to the veterancy level. You can even throw in an added constant to get the desired result.
Also if you look at part 7 of the tutorial, it does cover the basics.
In short you need something along the lines of this.
So I have four abilities that can be leveled up to 4, but I would like to do them in a similar style to warcraft with the following restrictions:
I've seen in my Learn ability that I can place a Requirement on each ability that you can learn, but as far as I can tell, it's only one per ability, not on per ability level .
I imagine I could use some formula to make one requirement work for each ability tier, but I'd really prefer to make 3 separate ones if it's possible to work that way. I could actually create clean tooltips for them that way, and also if any special cases come up down the road, it will be much easier for me to work around this.
Also, when I'm referencing the ability level in my requirement, does anyone know if the first learned level counts as 0 or 1?
Thanks,
Watch the video tutorial on heroes by OneTwoSC.
http://www.sc2mapster.com/forums/resources/tutorials/15314-video-onetwos-complete-hero-tutorial/
It counts as 0.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
The video didn't answer my question unfortunately, but I think I'm just gonna go with a single requirement for each ability using the formula. Now the only thing I'm wondering is how can I get my tooltip to reference the Ability Level?
I know it's something along the lines of <d ref="Ability,MyAbility,Level"/> but I'm not sure what that last value should be, does anyone know the field name for an ability's currently learned level?
Your requirement needs to compare the ability level multiplied by a constant to the veterancy level. You can even throw in an added constant to get the desired result.
Also if you look at part 7 of the tutorial, it does cover the basics.
In short you need something along the lines of this.
CountBehavior(veterancy,CompleteOnlyAtUnit) >= ((CountAbil(ability,CompleteOnlyAtUnit) * 2) + 2)
Or do you want one requirement to cover several different abilities? In that case try using aliases although I am not sure abilities can have those.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Yes, I have the requirement functioning the way I want to now, I'm just trying to get the tooltip for it to display what I want to.