wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 03-08-2009, 06:10 AM   #1
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

Send a message via AIM to Zerzax Send a message via MSN to Zerzax
Default Get Unit Scaling

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.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-08-2009, 06:49 AM   #2
Blacktastic
User
 
Blacktastic's Avatar
 
Join Date: Oct 2006
Posts: 138

Blacktastic is on a distinguished road (12)

Default

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.
Blacktastic is offline   Reply With Quote
Old 03-08-2009, 07:01 AM   #3
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

Build data base.
DioD is offline   Reply With Quote
Old 03-08-2009, 10:58 AM   #4
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default

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.
xombie is offline   Reply With Quote
Old 03-08-2009, 03:51 PM   #5
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

Send a message via AIM to Zerzax Send a message via MSN to Zerzax
Default

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.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote
Old 03-08-2009, 07:51 PM   #6
Blacktastic
User
 
Blacktastic's Avatar
 
Join Date: Oct 2006
Posts: 138

Blacktastic is on a distinguished road (12)

Default

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.
Blacktastic is offline   Reply With Quote
Old 03-08-2009, 08:14 PM   #7
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default

Zerzax, try removing the buff from the unit before re-applying it to make him larger.
xombie is offline   Reply With Quote
Old 03-08-2009, 08:24 PM   #8
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

Send a message via AIM to Zerzax Send a message via MSN to Zerzax
Default

It looks very chunky because they return to original size. Thanks for the suggestions though, but I think I've tried everything.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote
Old 03-10-2009, 10:42 AM   #9
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default

Do you still need some more suggestions or are you going to deal with it being chunky?
xombie is offline   Reply With Quote
Old 03-10-2009, 10:54 AM   #10
gekko
User
 
gekko's Avatar
 
Join Date: Nov 2007
Posts: 129

Submissions (1)

gekko will become famous soon enough (33)gekko will become famous soon enough (33)

Default

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).
gekko is offline   Reply With Quote
Old 03-10-2009, 11:21 AM
Litany
This message has been deleted by Litany.
Old 03-10-2009, 02:25 PM   #11
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

Send a message via AIM to Zerzax Send a message via MSN to Zerzax
Default

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.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote
Old 03-10-2009, 03:56 PM   #12
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Another hassle is when you want to change Vertex Color. "Someone" should make a system for this sort of thing.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 03-10-2009, 04:02 PM   #13
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default

For which sort of thing? GetUnitScale and GetUnitVertexColor ?
xombie is offline   Reply With Quote
Old 03-10-2009, 04:11 PM   #14
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

For both, obviously.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 03-10-2009, 04:14 PM   #15
xombie
Banned
 
Join Date: Oct 2006
Posts: 858

xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)xombie has a spectacular aura about (79)

Default

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.
xombie is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:46 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services