- Joined
- Jul 9, 2008
- Messages
- 253
I am wondering how I can make a unit get bigger every second, just like the EMP spell of invoker (in dota) but I can't figure out how 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

GROW BABY GROW

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Blizzard

Actions


Animation - Change (Casting unit)'s size to (101.00%, 101.00%, 101.00%) of its original size


Wait 2.00 seconds


Animation - Change (Casting unit)'s size to (102.00%, 102.00%, 102.00%) of its original size


Wait 2.00 seconds


Animation - Change (Casting unit)'s size to (103.00%, 103.00%, 103.00%) of its original size


Wait 2.00 seconds


Animation - Change (Casting unit)'s size to (104.00%, 104.00%, 104.00%) of its original size


Wait 10.00 seconds


Animation - Change (Casting unit)'s size to (100.00%, 100.00%, 100.00%) of its original size

Enlarge Unit

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Blizzard

Actions


Custom Script: local unit tempUnit = GetSpellAbilityUnit()


Custom Script: local real scale


For each (Integer A) from 1 to 5



Loop - Actions




Custom Script: set scale = 100 + ( I2R ( GetForLoopIndexA() ) * 10 )




Custom Script: call SetUnitScalePercent( tempUnit, scale, scale, scale )




Wait 1.00 seconds
Grow Red

Events


Unit - A unit owned by Player 1 (Red) Begins casting an ability

Conditions


(Ability being cast) Equal to Blizzard

Actions


Set PlayerRedHero = (Casting unit)


Animation - Change PlayerRedHero's size to (101.00%, 101.00%, 101.00%) of its original size


Wait 2.00 seconds


Animation - Change PlayerRedHero's size to (102.00%, 102.00%, 102.00%) of its original size


Wait 2.00 seconds


Animation - Change PlayerRedHero's size to (103.00%, 103.00%, 103.00%) of its original size


Wait 10.00 seconds


Animation - Change PlayerRedHero's size to (100.00%, 100.00%, 100.00%) of its original size
.
grow

Events


Unit - A unit starts the effect of an ability

Conditions


(Ability being cast) Equal to Your Ability

Actions


Custom script: local real udg_real


Set real = 100.00


For each (Integer A) from 1 to 5, do (Actions)



Loop - Actions




Set real = (real + 1.00)




Animation - Change (Triggering unit)'s size to (real%, real%, real%) of its original size




Wait 1.00 seconds
grow

Events


Unit - A unit starts the effect of an ability

Conditions


(Ability being cast) Equal to Your Ability

Actions


Custom script: local real udg_real


Custom script: local unit udg_unit


Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Preset for building adjustment degrees


Set unit = (Last created unit)


Set real = 100.00


For each (Integer A) from 1 to 5, do (Actions)



Loop - Actions




Set real = (real + 1.00)




Animation - Change unit's size to (real%, real%, real%) of its original size




Wait 1.00 seconds
grow

Events


Unit - A unit starts the effect of an ability

Conditions


(Ability being cast) Equal to Your Ability

Actions


Custom script: local real udg_real


Custom script: local unit u


Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Preset for building adjustment degrees


Custom script: set u = GetLastCreatedUnit()


Set real = 100.00


For each (Integer A) from 1 to 5, do (Actions)



Loop - Actions




Set real = (real + 10.00)




Custom script: call SetUnitScalePercent( u, udg_real, udg_real, udg_real )




Wait 1.00 seconds
