Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Hello, I wonder whether they help me with a trigger ... I want to work this way: every time you finish a training unit, that unit will armor (of any kind), and random passive spells
Random armor is impossible unless you create clones of each unit with a different armor but that would be a hellish work and it would increase the loading time drastically because more object data would need to be loaded. However, random spells can be easily done with an integer variable. Just set up the following trigger:
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to (Your Unit)
Actions
Set MyInteger = (Random integer number between 1 and 3)
If (MyInteger Equal to 1) then do (Unit - Add Bash to (Trained unit)) else do (Do nothing)
If (MyInteger Equal to 2) then do (Unit - Add Critical Strike to (Trained unit)) else do (Do nothing)
If (MyInteger Equal to 3) then do (Unit - Add Evasion to (Trained unit)) else do (Do nothing)
Of course you can add more if you want but that's the base.
You can remove the condition if you want it to be for any trained unit.
Random armor is impossible unless you create clones of each unit with a different armor but that would be a hellish work and it would increase the loading time drastically because more object data would need to be loaded. However, random spells can be easily done with an integer variable. Just set up the following trigger:
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to (Your Unit)
Actions
Set MyInteger = (Random integer number between 1 and 3)
If (MyInteger Equal to 1) then do (Unit - Add Bash to (Trained unit)) else do (Do nothing)
If (MyInteger Equal to 2) then do (Unit - Add Critical Strike to (Trained unit)) else do (Do nothing)
If (MyInteger Equal to 3) then do (Unit - Add Evasion to (Trained unit)) else do (Do nothing)
Of course you can add more if you want but that's the base.
You can remove the condition if you want it to be for any trained unit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.