• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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!
 
Level 2
Joined
Jan 10, 2021
Messages
10
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
 
Level 2
Joined
Mar 3, 2021
Messages
7
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.
Top