HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Get Unit Scaling

03-08-2009, 05:10 AM#1
Zerzax
What is a good way to find a unit's original scaling value? Most units start at 1.00 but some have .95 or some other deviation. I'm looking to restore original size after progressively increasing scale.
03-08-2009, 05:49 AM#2
Blacktastic
Couldn't you just store the amount of scaling that you progressed through in a variable and then revert it using the number you stored?

Example, If you add 5, took off 2, added 12, and took off 6 you would have a value of 9 above. So subtract 9.
03-08-2009, 06:01 AM#3
DioD
Build data base.
03-08-2009, 09:58 AM#4
xombie
Use a spell like Blood Lust that automatically adds it to the unit's scale. You can make different levels of Blood Lust for different values of increased size.
03-08-2009, 02:51 PM#5
Zerzax
Blacktastic, I can't do that because to change scale you have to assume some base value. I can't build a database either, no time and I would blow my brains out. Bloodlust is the base ability I'm using - the problem is, it will only scale to the size that first gets cast on the unit - I'm recasting bloodlust at progressively higher levels and the scaling refuses to budge. I think at this point I'll just give a 25% boost and some fancy effects at the max level.
03-08-2009, 06:51 PM#6
Blacktastic
You could always attach some kind of integer or add an ability in a disabled spellbook that has the scaling value in it (Example: Ability Art Fields can be retrieved). Granted you'd have to do this for every unit but it would achieve your result.
03-08-2009, 07:14 PM#7
xombie
Zerzax, try removing the buff from the unit before re-applying it to make him larger.
03-08-2009, 07:24 PM#8
Zerzax
It looks very chunky because they return to original size. Thanks for the suggestions though, but I think I've tried everything.
03-10-2009, 09:42 AM#9
xombie
Do you still need some more suggestions or are you going to deal with it being chunky?
03-10-2009, 09:54 AM#10
gekko
you could use automated tools like my GMSI to build a scaling database (i.e. extract the basescaling from all the units in your objecteditor and assemble a jass trigger that initializes gamecache or an array with them).
03-10-2009, 01:25 PM#11
Zerzax
Just to clear any confusion, this was only intended for the spell making session, which ended Sunday night. I'm sorry I didn't elaborate further, I was just looking for a quick method to do it. I settled on removing the buff right before ordering the dummy unit to cast bloodlust.
03-10-2009, 02:56 PM#12
Vexorian
Another hassle is when you want to change Vertex Color. "Someone" should make a system for this sort of thing.
03-10-2009, 03:02 PM#13
xombie
For which sort of thing? GetUnitScale and GetUnitVertexColor ?
03-10-2009, 03:11 PM#14
Vexorian
For both, obviously.
03-10-2009, 03:14 PM#15
xombie
Hmm.. how would you go about getting the original scaling value (and vertex color, or at least the RGB that is available in editor) from the data fields? I wouldn't mind cookin' something up.