langthangbairac
T.E.T.Я.I.S
- 19/5/12
- 594
- 767
Chắc mọi người biết until con kiến trong dota rồi chứ ? Sau đây mình sin giới thiệu qua về skills này :
Khi cast skill, hero sẽ trở về trạng thái 5s trước đó ( MP, HP trở về và EXP, gold vẫn bình thường )
Mình dốt văn nên ko thể miêu tả được cho các bạn
nên chỉ nói sơ sơ thôi, ai ko hiểu down về copy sang map mình cũng được.
Khi cast skill, nó sẽ hồi phục MP, HP 5s trước ( nhờ trigger thứ 3 )
Khi học skill thì sẽ bắt dầu mở trigger 3 đẻ đặt thời gian bảo lưu
Đặt số máu, vị trí trước đó 5s, sau 5s sẽ đặt lại vị trí ( kể từ khi mỏ trigger này )
Lưu 5 giây kể từ khi bị chết
Chắc khó hiểu :( nhưng đảm bảo ko có leak
Cũng tại vì WE bị lỗi nên đã Enabled trigger nên các bạn phải tick vào enabled trigger rồi test
Khi cast skill, hero sẽ trở về trạng thái 5s trước đó ( MP, HP trở về và EXP, gold vẫn bình thường )
Mình dốt văn nên ko thể miêu tả được cho các bạn
nên chỉ nói sơ sơ thôi, ai ko hiểu down về copy sang map mình cũng được.Khi cast skill, nó sẽ hồi phục MP, HP 5s trước ( nhờ trigger thứ 3 )
Mã:
Time Lapse cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Time Lapse
Actions
Set CasterPos = (Position of (Triggering unit))
Special Effect - Create a special effect at CasterPos using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_CasterPos)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HPInteger Less than or equal to 6
Then - Actions
Unit - Set life of (Triggering unit) to HP[1]
Unit - Set mana of (Triggering unit) to MP[1]
Unit - Move (Triggering unit) instantly to POS[1]
Custom script: call RemoveLocation (udg_POS[1])
Else - Actions
Unit - Set life of (Triggering unit) to HP[(HPInteger - 5)]
Unit - Set mana of (Triggering unit) to MP[(MPInteger - 5)]
Unit - Move (Triggering unit) instantly to POS[(POSInteger - 5)]
Custom script: call RemoveLocation (udg_POS[udg_POSInteger - 5])
Set CasterPos = (Position of (Triggering unit))
Special Effect - Create a special effect at CasterPos using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_CasterPos)
Unit - Order (Triggering unit) to Stop
Mã:
Time Lapse cast
Events
Unit - A unit Learns a skill
Conditions
(Level of Time Lapse for (Triggering unit)) Greater than 0
Actions
Set Caste = (Triggering unit)
Trigger - Turn off (This trigger)
Trigger - Turn on Time Lapse creat restore2 <gen>
Mã:
Time Lapse creat restore2
Events
Time - Every 1.00 seconds of game time
Conditions
(Caste is alive) Equal to True
Actions
Set HPInteger = (HPInteger + 1)
Set HP[HPInteger] = (Life of Caste)
Set MPInteger = (MPInteger + 1)
Set MP[MPInteger] = (Mana of Caste)
Set POSInteger = (POSInteger + 1)
Set POS[POSInteger] = (Position of Caste)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HPInteger Greater than 6
Then - Actions
Custom script: call RemoveLocation (udg_POS[udg_POSInteger - 6])
Else - Actions
Mã:
Time Lapse save dies
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Caste
Actions
Wait until ((Caste is alive) Equal to True), checking every 0.10 seconds
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set HP[(HPInteger - (Integer A))] = (Life of Caste)
Set MP[(MPInteger - (Integer A))] = (Mana of Caste)
Set POS[(POSInteger - (Integer A))] = (Position of Caste)
Chắc khó hiểu :( nhưng đảm bảo ko có leak

Cũng tại vì WE bị lỗi nên đã Enabled trigger nên các bạn phải tick vào enabled trigger rồi test
Attachments
Chỉnh sửa cuối:

thử rồi sẽ biết ngay :)


