• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hero Unit Scale up while levelling

Status
Not open for further replies.
Level 2
Joined
Mar 3, 2021
Messages
7
Hello everyone, first tread for me. As the title says I am trying to make a trigger to scale-up of a certain value a unit, which is a hero, and when it is levelling up. I made this trigger:

(sorry if I can't post the proper pics but I don0t know how to do it XD)

Hero size growth
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Signore della Stirpe
Actions
Unit - Set Unit: (Triggering unit)'s Real Field: Scaling Value ('usca') to Value: ((Unit: (Triggering unit)'s Real Field: Scaling Value ('usca')) + 0.10)

Pls help, thank you!
 
Custom script: call SetUnitScale(GetTriggerUnit(),0.9+0.1*GetUnitLevel(GetTriggerUnit()),0.9+0.1*GetUnitLevel(GetTriggerUnit()),0.9+0.1*GetUnitLevel(GetTriggerUnit()))

Or you can use this:

Animation - Change (Triggering unit)'s size to ((90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%, (90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%, (90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%) of its original size
 
Thank you a lot, I used the trigger and now it works. I made this because the starting scaling value i used on the custom unit was 0.370:

Hero size growth
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Signore della Stirpe
Actions
Set VariableSet Real = (37.00 + (3.50 x (Real((Hero level of (Triggering unit))))))
Animation - Change (Triggering unit)'s size to (Real%, Real%, Real%) of its original size
 
Status
Not open for further replies.
Back
Top