So I have hero upgrades and there are over 140 effects on all the upgrades. Is there an easier way to do it? For example, currently the health increases exponentially but I want it to increase linearly. It would take hours to change all the effects, look up all units base healths and such. Is there any way you can do something like this? <EffectArray Operation="Add" Reference="Unit,Medic,LifeStart[0]" Value=".1 * Medic.LifeConst"/> Or even a way not to have 140 effects? Btw I am forced to use xml do to the bug of deleting my effects if there are above 132... All replies are appreciated.
Is there anyway I can set a catalog value variable? I have this
Catalog - Set value of Unit,AutoTurret,LifeMax for player (Triggering player) to (String(0.0) with Any Precision decimal places)
but cant I do this?
Catalog - Set value of Unit,Units[index],LifeMax for player (Triggering player) to (String(0.0) with Any Precision decimal places)
I need to do it in a loop.
Any ideas?
Depends what your variable is. Most variables can be converted into strings (but not vice-versa), so it should be easy. Use the "Convert x to String" functions.
So I have hero upgrades and there are over 140 effects on all the upgrades. Is there an easier way to do it? For example, currently the health increases exponentially but I want it to increase linearly. It would take hours to change all the effects, look up all units base healths and such. Is there any way you can do something like this? <EffectArray Operation="Add" Reference="Unit,Medic,LifeStart[0]" Value=".1 * Medic.LifeConst"/> Or even a way not to have 140 effects? Btw I am forced to use xml do to the bug of deleting my effects if there are above 132... All replies are appreciated.
A Catalog trigger can alter the same stuff upgrades can.
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
Is there anyway I can set a catalog value variable? I have this Catalog - Set value of Unit,AutoTurret,LifeMax for player (Triggering player) to (String(0.0) with Any Precision decimal places) but cant I do this? Catalog - Set value of Unit,Units[index],LifeMax for player (Triggering player) to (String(0.0) with Any Precision decimal places) I need to do it in a loop. Any ideas?
Depends what your variable is. Most variables can be converted into strings (but not vice-versa), so it should be easy. Use the "Convert x to String" functions.
It is type unit, but if you go under object there are no functions or variables just references to units.
Is there any way to get the base( const or starting ) health/damage from a unit instead of current?
Get the catalog value of player 0's units (unless you're altering them too).
Ahhh smart.