• 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] Increasing the size of a unit's current size?

Status
Not open for further replies.
Level 2
Joined
Jul 7, 2010
Messages
16
Hello! I've just gotten into variables and such and is quite good in some of the areas of it. But one thing that i'm not able to make is a special trigger...

This Trigger:
I want a trigger to every 0.10 seconds increase the size of a unit by 1% of its current size.

My Example:
Every 0.10 seconds -
Increase Size of ("TheUnit" by (CurrentSize of "TheUnit" +1)%


Thank you for reading and I'd love to get some help with it!! :cute:
 
  • Trigger
  • Events
    • Time - Every 0.10 seconds of game-time
  • Conditions
  • Actions
    • Set Size = (Size + 1.00)
    • Animation - Change Unit's size to ((100 + Size)%, (100 + Size)%, (100 + Size)%) of its original size
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • Size Equal to X
      • Then - Actions
        • Trigger - Turn off (This trigger)
        • Set Size = 0
      • Else - Actions
Size is a Real variable.

This method is not MUI of course. If you want a MUI version (that can support multiple units at a time), let me know.
 
Level 2
Joined
Jul 7, 2010
Messages
16
Thanks!! Thanks! And once again - Thanks!!
I would never have thought of something like that ><
Thank you, a lot!!

And yes, I'd like to know how to create it as a MUI too! Man I'm learning a lot from this!! :D
 
Level 17
Joined
Jun 17, 2010
Messages
2,275
Well if he uses an ability for this to happen, or whatever the triggering factor is use
  • First Trigger
    • Events
    • Conditions
    • Actions
      • Set NumberOfUnits = NumberOfUnits + 1
And in the unit variable check mark the box that says Array and in the index put
  • Set Unit[NumberOfUnits] = triggering unit (or whatever)
 
Status
Not open for further replies.
Top