• 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.

[Trigger] Changing units size from 100% to 500% over 20 seconds dinamicly

Status
Not open for further replies.
Level 14
Joined
Apr 21, 2007
Messages
1,465
Ok so what I want is to change the units size over the 20 seconds given with the folloing trigger:

Code:
Event - Every 0.05 seconds
Condition - /
Action - Set MYUNIT size to (MYUNIT size + 1)

Problem is this isn't delphi, it's GUI and I am not sure if it is doable without JASS. What this does is make the unit grow from 100% to 120% the 1st second, then to 200% the first 5 seconds and then the next 5 seconds to 300%, after that to 400% and finishing at 500% at the end of the 20th second.

So my question is, is this doable without JASS and how?
 

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
First the animation changing size has three integers and all of them are 100%

Ok so set three integer type variabel ------ Set Sizez = 100
Set Sizex = 100
Set Sizec = 100
but fist make sure that your (0,04) triger is turned off at map intializtion
Ok so turn on the triger and but in the change unit size
Sizez + 1 and Sizex + 1 and Sizec + 1
Then renew your variabel by setting them + 1 like this : Set Sizez = Sizez + 1
ext
And each 0.04 second the size will get bigger and bigger until it reaches 500 but make sure you have the loup integer = 500 and if the else condition cheking every 0.04 second for if it is 500 yet
 
Level 3
Joined
Apr 26, 2008
Messages
31
try
event
whatever u want
cond whatever u want
action
turn on trigger unit increase size (this trigger is at the bottom)
turn off trigger (the one that was just turned on)
wait 1 sec
turn on trigger(the one just turn off
(repeat this untill u get 20 wait 1 sec)
hope it works for u

the trigger for increase size
event
cond
animation -increase unit size
 
Status
Not open for further replies.
Top