Unit Size Increased by kills. Help

Scauldingpon

New Member
Reaction score
1
I did a search but i'll be honest i didn't look 100% of all the posts.

But i'm just wondering how this can be done. I've looked around in the Triggers found the Animation Change size. but it doesn't totally make sense to me. any help from anyone would be nice. Thank you in advanced.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
well, first of all you have to count the kills a unit does.
i guess you already know how that works, if you dont just say so and we will help you.

for the animation just do it like this:
Trigger:
  • GrowUpSammyP
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set KillCounter = (KillCounter + 1)
      • Animation - Change (Killing unit)'s size to ((100.00 + (10.00 x (Real(KillCounter))))%, 100.00%, 100.00%) of its original size


this will increase the killing units size by 10% for each kill in the game.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
So, you just want so that when some unit kills another unit, it's size will increase ?! :S

Here's a sample for you:
Trigger:
  • Increase Size
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Not equal to True
    • 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 + ((Real((Custom value of (Killing unit)))) x 10.00))%, 100.00%, 100.00%) of its original size


This will increase the killing unit's size by 10 every time it kills someone...
 

Scauldingpon

New Member
Reaction score
1
Its for a Hero that growths in his life span. so i made the growth number a lot lower so its not huge by the end of the game, but larger then the rest of the units.

Tried both of yours and both work and i'm satisfied. Now, i only want this for a race how do i go about doing that?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
just add in the right condition.
if only one specific unit or unit type grows its pretty easy.

something like:
Trigger:
  • (Unit-type of (Triggering unit)) Gleich MyLittleGrowingHero

will do what you want.
 

Laiev

Hey Listen!!
Reaction score
188
I know Double post.

But how would i go about decreasing the size of the unit while not in combat?

Create a trigger which check every second or 0,0X seconds if the unit is attacked or is attacking, if equal to falso, then change size to 100%.

ANDDDDDDD....

for the 'leak' problem what you deleted ;P

That ins't a leak, when you use a improve damage/armor in trigger based on item (claws of attack), the game just make a mini-lag...

You can fix it with preload ;)
 

jig7c

Stop reading me...-statement
Reaction score
123
its not in the condition, run a trigger every 1 second, that in the action line, checks if the unit is being attacked, or is attacking, thence triggering a boolean expr....
 

Laiev

Hey Listen!!
Reaction score
188
EDITED: Jesus christ, i really CAN'T do it without time

but is what jig7c say, create triggers to check if a unit take damage or don't
 

Scauldingpon

New Member
Reaction score
1
Can you make a example?

Nvm.

No i saw your example Laiev, that was too jig7c. i just took forever to post it cause i was trying things out. but you example didn't really make a whole lot of sense to me. at this moment. what you posted is pretty much what i did. But i don't want to hit 100% size or Damage to 0. i would like it to slowly go down. so it more of a constant growing and shrinking. same with damage.
 

Laiev

Hey Listen!!
Reaction score
188
i just have a LITTLE ¬¬ problem with set the size, well, i set but when i will reset, somesh1t happen -.-

well... i will post to you see what i do and you can see how it work, also, the change size ungrowing don't work how i need to work

EDIT:

AHAAAAAAAAAAAAAA

NOW IT WORK :D yaya... :D

test and say what you think/like/dontlike/whatever

EDIT[2]:

So.....? o.õ'
 

Attachments

  • Test.w3x
    17.9 KB · Views: 268

Scauldingpon

New Member
Reaction score
1
just tested it. AMAZING! great work. i changed the multiples on the growth and shrink tho. so it wasn't so drastic.
 

Scauldingpon

New Member
Reaction score
1
OH nvm got a question. Can you do the same with Dmg? cause i added my Damage increaser in your triggers and when the unit is out of "combat" it just goes to 0 bonus damage instead of slowly going down. i guess i can just change it to every hit instead.

Also. for this to work with multi players do i just need to make AnyUnit an array?
 

Laiev

Hey Listen!!
Reaction score
188
Ya.... and the to work with damage, you just set it in Growing and Ungrowing trigger, the others don't change anything.

Also i think you will need to set Checkout to array too, cause it check if ANY unit takes damage in map, not only one, you just need fix this, set more condiction to trigger which chance falso to true and vice-versa, something like....

Trigger:
  • Condictions
    • Or - any condiction are true
      • (Damage Source) equal to BLOOD MAGE
      • (Triggering unit) equal to BLOOD MAGE
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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