I have a behavior:buff that gives unit +10% hp.
It works fine on regular units. Unit with 1000 hp will have 1100 hp with buff.
It is broken with hero units. It seems hp granted from attributes and veterancy are NOT accounted for it only goes of the base unit stat.
This is across the board with all other stats: Amor, Damage, Mana, etc
I have checked on the unit, attribute, veterancy and behavior data modules for a check box that might factor it in.
Can't seem to find it. This seems like a super noob quesiton but Im about to pull my hair out.
Wait, what if i want to buff a unit with attributes and have it apply the correct value? can i only have one OR the other?
Does it work if the base health is edited through upgrades? and could it be done through a data-trigger hybrid system (where the attributes define the amount and the trigger edits the catalog) for that matter?
yes, you can use upgrades or catalog value set to directly alter the stat values; and then your buffs/attributes will amplify those new values. the only downside to upgrades and catalogs, are that they are unit specific. every marine will get the life boost, ect. but if you only have 1 unit type per player, it will work fine for you.
I have a behavior:buff that gives unit +10% hp. It works fine on regular units. Unit with 1000 hp will have 1100 hp with buff. It is broken with hero units. It seems hp granted from attributes and veterancy are NOT accounted for it only goes of the base unit stat. This is across the board with all other stats: Amor, Damage, Mana, etc
I have checked on the unit, attribute, veterancy and behavior data modules for a check box that might factor it in. Can't seem to find it. This seems like a super noob quesiton but Im about to pull my hair out.
You are correct. It is not a bug, and not your fault. This is how things happen in starcraft 2.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
Wow... that is super hard to believe. Thanks for informing me.
as far as i know lotv will bring an option for it. so save your remaining hair for it.
Wait, what if i want to buff a unit with attributes and have it apply the correct value? can i only have one OR the other?
Does it work if the base health is edited through upgrades? and could it be done through a data-trigger hybrid system (where the attributes define the amount and the trigger edits the catalog) for that matter?
yes, you can use upgrades or catalog value set to directly alter the stat values; and then your buffs/attributes will amplify those new values. the only downside to upgrades and catalogs, are that they are unit specific. every marine will get the life boost, ect. but if you only have 1 unit type per player, it will work fine for you.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
In worst case you could use +life buff stacks added as a number based on attribute stacks and the base life.
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