Making a unit bigger?

Accname

2D-Graphics enthusiast
Reaction score
1,462
of course, but you got to use the units custom value:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Killing unit)) Equal to 'YourUnit'
    Actions
        Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
        Animation - Change (Killing unit)'s size to ((100.00 + (10.00 x (Real((Custom value of (Killing unit))))))%), 100.00%, 100.00%) of its original size
 

Weirdoze

New Member
Reaction score
6
dude, i can't find this part "((Custom value of (Killing unit))))))%)" anywhere.

Edit: found it :p
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
u don't nessecerly need to use the custom value i think it should be better to use a variable instead
 

joaoac

Active Member
Reaction score
11
of course, but you got to use the units custom value:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Killing unit)) Equal to 'YourUnit'
    Actions
        Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
        Animation - Change (Killing unit)'s size to ((100.00 + (10.00 x (Real((Custom value of (Killing unit))))))%), 100.00%, 100.00%) of its original size

But if you need the unit's custom value for another triggers, when you have to assume a new custom value to it?
Example: zombie maps, when you're infected, you receive a custom value that will turn you into a zombie in 10 seconds until the use of some kind of elixir.
Your hero will lose the "growing-custom-value" and receive a new that will mess up with the size scaling.

Are there any way to save custom values and dont mess with new values?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top