langthangbairac
T.E.T.Я.I.S
- 19/5/12
- 594
- 767
[ ĐÃ FIX LẠI
]
Skills 3 của balanar cho nó một lượng as và ms khá lớn vào ban đêm. Vào thẳng vấn đề luôn :
1. Variables và base skills :
Night_group : Unit group
Ms_bonus : real
Skill gloves of haste ( ở phần item )
Base skill Hunter in the night ( tùy bạn, ở đây mình base từ skill Evasion và chỉnh % chance thành 0% )
2. Trigger :
Gán skill tăng AS cho hero khi học skills này :
Đáng lẽ có thể cho vào 1 trigger nhưng mình tách ra 3 trigger :
Trigger 2
Trigger 3
Tại biến Ms_bonus là chỉnh số % tăng ms cho hero, bạn có thể chỉnh tại đây:
Set MS_bonus = (0.10 x ((Real((Level of Night for (Picked unit)))) + 2.00))
Số này băng : Tính như thế này : 0.1 x ( level skills + [ bonus của bạn ] )
Nhưng tùy theo cách đặt của bạn thì có thể chỉnh lại cả ở biến này cả trong skills tăng attack speeds

]Skills 3 của balanar cho nó một lượng as và ms khá lớn vào ban đêm. Vào thẳng vấn đề luôn :
1. Variables và base skills :
Night_group : Unit group
Ms_bonus : real
Skill gloves of haste ( ở phần item )
Base skill Hunter in the night ( tùy bạn, ở đây mình base từ skill Evasion và chỉnh % chance thành 0% )
2. Trigger :
Gán skill tăng AS cho hero khi học skills này :
Mã:
Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Night
Actions
Unit - Add +AS to (Triggering unit)
Trigger - Turn off (This trigger)
Trigger - Turn on Time 1 <gen>
Trigger - Turn on Time 2 <gen>
Trigger - Turn on Time 3 <gen>
Mã:
Time 1
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 18.00
(In-game time of day) Less than or equal to 24.59
Then - Actions
Set Night_group = (Units in (Playable map area) matching ((Level of Night for (Matching unit)) Greater than or equal to 1))
Unit Group - Pick every unit in Night_group and do (Actions)
Loop - Actions
Set MS_bonus = (0.10 x ((Real((Level of Night for (Picked unit)))) + 2.00))
Unit - Set level of +AS for (Picked unit) to (Level of Night for (Picked unit))
Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) + ((Default movement speed of (Picked unit)) x MS_bonus))
Custom script: call DestroyGroup(udg_Night_group)
Else - Actions
Mã:
Time 2
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 0.00
(In-game time of day) Less than 6.00
Then - Actions
Set Night_group = (Units in (Playable map area) matching ((Level of Night for (Matching unit)) Greater than or equal to 1))
Unit Group - Pick every unit in Night_group and do (Actions)
Loop - Actions
Set MS_bonus = (0.10 x ((Real((Level of Night for (Picked unit)))) + 2.00))
Unit - Set level of +AS for (Picked unit) to (Level of Night for (Picked unit))
Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) + ((Default movement speed of (Picked unit)) x MS_bonus))
Custom script: call DestroyGroup(udg_Night_group)
Else - Actions
Mã:
Time 3
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 6.00
(In-game time of day) Less than 18.00
Then - Actions
Set Night_group = (Units in (Playable map area) matching ((Level of Night for (Matching unit)) Greater than or equal to 1))
Unit Group - Pick every unit in Night_group and do (Actions)
Loop - Actions
Unit - Set level of +AS for (Picked unit) to 5
Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
Custom script: call DestroyGroup(udg_Night_group)
Else - Actions
Tại biến Ms_bonus là chỉnh số % tăng ms cho hero, bạn có thể chỉnh tại đây:
Set MS_bonus = (0.10 x ((Real((Level of Night for (Picked unit)))) + 2.00))
Số này băng : Tính như thế này : 0.1 x ( level skills + [ bonus của bạn ] )
Nhưng tùy theo cách đặt của bạn thì có thể chỉnh lại cả ở biến này cả trong skills tăng attack speeds

Attachments
Chỉnh sửa cuối:
Tâm lý mình thấy cứ hạn chế xài tới Group thì sẽ bớt leak =-=

? có thêm cái giày đó, test xem lỗi ko :)