So here i got another add stats probleme, the unit can learn a talen which will increase his str by 1/2/3/4/5% and his agi by 2/4/6/8/10% so the trigger:
The selling unit is the level up so lvl 1,2,3,4,5
The iron will[1] is the lvl check in this trigger i only used 1 lvl just to show it to you guys.
Tho when i train the ability (sell the unit) it wont add the str or the agi to the unit. i think the probleme is the /numbers but i dont know for sure since /100 (for the str) should be 1% and /50 (for the agi) should be 2%
Code:
iron Will E R
Events
Unit - A unit owned by Player 1 (Red) Sells a unit
Conditions
Actions
Wait 2.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Sold unit)) Equal to Iron Will
ironWill[1] Equal to 1
Then - Actions
Set ironWillSt[1] = (Strength of Orc Warrior (Red) 0008 <gen> (Exclude bonuses))
Set ironWillSt[2] = (ironWillSt[1] / 100)
Hero - Modify Strength of Orc Warrior (Red) 0008 <gen>: Add ironWillSt[2]
Set ironWillSt[3] = (Agility of Orc Warrior (Red) 0008 <gen> (Exclude bonuses))
Set ironWillSt[4] = (ironWillSt[3] / 50)
Hero - Modify Agility of Orc Warrior (Red) 0008 <gen>: Add ironWillSt[4]
Else - Actions
Do nothing
The selling unit is the level up so lvl 1,2,3,4,5
The iron will[1] is the lvl check in this trigger i only used 1 lvl just to show it to you guys.
Tho when i train the ability (sell the unit) it wont add the str or the agi to the unit. i think the probleme is the /numbers but i dont know for sure since /100 (for the str) should be 1% and /50 (for the agi) should be 2%