Hero Unit Scale up while levelling

Status
Not open for further replies.
Level 2
Joined
Mar 3, 2021
Messages
7
Hello everyone, first tread for me. As the title says I am trying to make a trigger to scale-up of a certain value a unit, which is a hero, and when it is levelling up. I made this trigger:

(sorry if I can't post the proper pics but I don0t know how to do it XD)

Hero size growth
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Signore della Stirpe
Actions
Unit - Set Unit: (Triggering unit)'s Real Field: Scaling Value ('usca') to Value: ((Unit: (Triggering unit)'s Real Field: Scaling Value ('usca')) + 0.10)

Pls help, thank you!
 
Custom script: call SetUnitScale(GetTriggerUnit(),0.9+0.1*GetUnitLevel(GetTriggerUnit()),0.9+0.1*GetUnitLevel(GetTriggerUnit()),0.9+0.1*GetUnitLevel(GetTriggerUnit()))

Or you can use this:

Animation - Change (Triggering unit)'s size to ((90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%, (90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%, (90.00 + (10.00 x (Real((Hero level of (Triggering unit))))))%) of its original size
 
Thank you a lot, I used the trigger and now it works. I made this because the starting scaling value i used on the custom unit was 0.370:

Hero size growth
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Signore della Stirpe
Actions
Set VariableSet Real = (37.00 + (3.50 x (Real((Hero level of (Triggering unit))))))
Animation - Change (Triggering unit)'s size to (Real%, Real%, Real%) of its original size
 
Status
Not open for further replies.
Back
Top