Evil_Hunter
Mario & Luigi
^ Ko stack đâu a

Thử làm theo cách người khác, cho ability dmg + 20/25/30/35 mỗi aiblity là 10 level, mỗi level cộng dần dmg. Tức ability dmg + 35. Level 1 + 35 dmg, level 2 + 70 dmg, tương tự. Rồi trigger như sau mà hoàn toàn ko stack. Đặt 2 hero vẫn cộng có 35 dmg .Ko biết sai chỗ nào...
Mã:
Suc Manh Hoang Gia
Events
Time - Every 1.00 seconds of game time
Conditions
(Level of Suc Manh Hoang Gia for Unit_Skill[0]) Greater than 0
Actions
Set Point_Map[0] = (Position of Unit_Skill[0])
Set Group_Skill[0] = (Units within 1300.00 of Point_Skill[0] matching (((Matching unit) is A Hero) Equal to True))
Set Integer[0] = (Number of units in Group_Skill[0])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Suc Manh Hoang Gia for Unit_Skill[0]) Equal to 1
Then - Actions
Unit - Add Damage + 20 to Unit_Skill[0]
Unit - Add Attack Speed + 5% to Unit_Skill[0]
For each (Integer A) from 1 to Integer[0], do (Actions)
Loop - Actions
Unit - Set level of Damage + 20 for Unit_Skill[0] to Integer[0]
Unit - Set level of Attack Speed + 5% for Unit_Skill[0] to Integer[0]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Suc Manh Hoang Gia for Unit_Skill[0]) Equal to 2
Then - Actions
Unit - Remove Damage + 20 from Unit_Skill[0]
Unit - Remove Attack Speed + 5% from Unit_Skill[0]
Unit - Add Damage + 25 to Unit_Skill[0]
Unit - Add Attack Speed + 10% to Unit_Skill[0]
For each (Integer A) from 1 to Integer[0], do (Actions)
Loop - Actions
Unit - Set level of Damage + 25 for Unit_Skill[0] to Integer[0]
Unit - Set level of Attack Speed + 10% for Unit_Skill[0] to Integer[0]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Suc Manh Hoang Gia for Unit_Skill[0]) Equal to 3
Then - Actions
Unit - Remove Damage + 25 from Unit_Skill[0]
Unit - Remove Attack Speed + 10% from Unit_Skill[0]
Unit - Add Damage + 30 to Unit_Skill[0]
Unit - Add Attack Speed + 15% to Unit_Skill[0]
For each (Integer A) from 1 to Integer[0], do (Actions)
Loop - Actions
Unit - Set level of Damage + 30 for Unit_Skill[0] to Integer[0]
Unit - Set level of Attack Speed + 15% for Unit_Skill[0] to Integer[0]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Suc Manh Hoang Gia for Unit_Skill[0]) Equal to 4
Then - Actions
Unit - Remove Damage + 30 from Unit_Skill[0]
Unit - Remove Attack Speed + 15% from Unit_Skill[0]
Unit - Add Damage + 35 to Unit_Skill[0]
Unit - Add Attack Speed + 20% to Unit_Skill[0]
For each (Integer A) from 1 to Integer[0], do (Actions)
Loop - Actions
Unit - Set level of Damage + 35 for Unit_Skill[0] to Integer[0]
Unit - Set level of Attack Speed + 20% for Unit_Skill[0] to Integer[0]
Else - Actions
Custom script: call RemoveLocation(udg_Point_Skill[0])
Custom script: call DestroyGroup(udg_Group_Skill[0])
Chỉnh sửa cuối:


30 charttttttttttttttttttttttt
?
ai có thể bày cách khác cho mình được ko?