Ryanpzo9
Donkey Kong
- 20/10/08
- 326
- 11
Mã:
Earth Wave Moving (Initially ON)
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to EarthWaveIndex, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EarthWaveDistance[(Integer A)] Greater than 0.00
Then - Actions
Unit - Make EarthWaveCaster[(Integer A)] Vulnerable
Unit - Turn collision for EarthWaveCaster[(Integer A)] Off
Animation - Change EarthWaveCaster[(Integer A)]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
[COLOR="#0000FF"]Set EarthWaveLoc = (Position of EarthWaveCaster[(Integer A)])[/COLOR] Set EarthWaveDistance[(Integer A)] = (EarthWaveDistance[(Integer A)] - 45.00)
Unit - Move EarthWaveCaster[(Integer A)] instantly to (EarthWaveLoc offset by 45.00 towards EarthWaveAngle[(Integer A)] degrees)
Special Effect - Create a special effect at EarthWaveLoc using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 Earth Wave Dummy for (Owner of EarthWaveCaster[(Integer A)]) at EarthWaveLoc facing Default building facing degrees
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Set level of Earth Wave Dummy for (Last created unit) to (Level of Earth Wave for EarthWaveCaster[(Integer A)])
Unit - Order (Last created unit) to Neutral - Slam
Custom script: call RemoveLocation(udg_EarthWaveLoc)
Else - Actions
Unit - Turn collision for EarthWaveCaster[(Integer A)] On
Unit - Make EarthWaveCaster[(Integer A)] Vulnerable
Animation - Change EarthWaveCaster[(Integer A)]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Ai kiểm tra dùm mình xem cái trigger này có leak chỗ nào ko... Theo kinh nghiệm của mình thì chỉ có mỗi cái dòng xanh kia thôi thì đã remove ở mỗi 0.03s rồi. Và bên cạnh đấy thì ai có thể chỉ dùm mình cách deal dmg cho các unit như kiểu wave của Morphling trong DotA ấy. Mình cũng biết là sẽ pick 1 khoảng nhỏ toàn bộ unit trong cái vùng con Morph đi qua nhưng ko biết làm thế nào để cho nó chỉ gây dmg 1 lần qua các unit đó tại cái trigger trên là đang làm skill Waveform của Morph nhưng nếu cứ 0.03s di chuyển con hero 1 lần với khoảng cách có 45 range mà pick trong khoảng 225 thì nó sẽ gây dmg liên tục trong khoảng 4 5 lần vào những unit nó đi qua... Ai có lòng thì chỉ hộ mình với...
Cái slam thực ra ko có dmg mà chỉ là effect slow thôi 




nhưng mình không biết làm. ai chỉ với
Nó vẫn cứ deal dmg liên hồi 