- Joined
- Dec 3, 2018
- Messages
- 896
I want to make a unit bigger after it kills a unit, and idk how to do the trigger. Can some1 help me please?
I want to make a unit bigger after it kills a unit, and idk how to do the trigger. Can some1 help me please?
Only issue with that is you're now multiplying the new scaling value by 1.05x instead of the original value. Like: 1.00 * 1.05 = 1.05, 1.05 * 1.05 = 1.1025, 1.1025*1.05 = 1.157625.Can't you just do something like this?
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
Actions
Unit - Set Unit: (Killing unit)'s Real Field: Scaling Value ('usca') to Value: ((Unit: (Killing unit)'s Real Field: Scaling Value ('usca')) x 1.05)
True, that seems like the better option in most situations. I still find it nice to have a variable that keeps track of the default value for when you want to reset the scale. Not every unit uses a 1.00 base scale after all.Well you can do "+ 0.05" or something instead.
Yeah, I just hate Hashtables and hate recommending them to newcomers/people still learning. Unit Indexer seems to click a lot more with people that struggle with triggers.True, but you don't really need a unit indexer for that, you can just put it straight in a hashtable.