Bigger with Kills

yamifowl

Member
Reaction score
2
Hi friends...
I would like to ask for help...
Can anyone say me if there is a way to:
Create a Unit that, with every kill, it gets bigger...

Thanks!!!
 

Sim

Forum Administrator
Staff member
Reaction score
534
Code:
Bigger Unit
    Events
        Unit - A unit dies
    Conditions
        (Unit-type of (Killing unit)) Equal to x
    Actions
        Set Size_Numb = (Size_Numb + 5.00)
        Animation - Change (Killing unit)'s size to (Size_Numb%, Size_Numb%, Size_Numb%) of its original size

Set the initial value of Size_Numb to 100.00
 

yamifowl

Member
Reaction score
2
Thanks a lot!!!
Just one question...
Do you know if the "Original Size" is changed???
Cause...
Ok, it kills one unit... then it gets to 105% of size...
When it kills another one, it will get 105% of the previously changed size or 105% of the inicial size?
 

Sim

Forum Administrator
Staff member
Reaction score
534
the formulae is simply 100 + (kills * 5) so

1 = 105%
2 = 110%
3= 115%

easy!
 

seph ir oth

Mod'n Dat News Jon
Reaction score
262
Please take into account the number of units this unit will kill. Imagine if he killed 100 units...

100% + (100*5) = 600% bigger

(S)he would take up the whole screen!
 

Sim

Forum Administrator
Staff member
Reaction score
534
He didn't told me to :rolleyes:

Nah seriously just add an if-then-else statement that checks if say Size_Numb Equal to 50 then do "Skip remaining actions".
 

Chocobo

White-Flower
Reaction score
409
Simply use Unit's Custom Value to store the kill count in a unit. Better, doesn't it? :p

Code:
Bigger Unit
    Events
        Unit - A unit dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Growing Number
    Actions
        Unit - Set (Triggering unit)'s Custom Value to (((Triggering unit)'s Custom Value) + 1))
        Animation - Change (Triggering unit)'s size to (((Triggering unit)'s Custom Value)%, ((Triggering unit)'s Custom Value)%, ((Triggering unit)'s Custom Value)%) of its original size
 

yamifowl

Member
Reaction score
2
THanks everyone...
=D
I changed it to get only 2% bigger, and it stops with 100 kills...
In fact, it gets really bigger, but it's quite nice...
=D
Thanks!!!!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top