lonewolf020291
T.E.T.Я.I.S
- 16/3/07
- 579
- 1,017
Mình ghi nhận ý kiến của bạn, tạm thời mình chưa biết nguyên nhân là ở đâu, chỉ biết thế diễn đạt. Ở đây có 2 mẫu map.
- Mẫu này có khá nhìu Doodad đè lên nhau ( cái thác nước) mọi ng` chọn con Ryu sài thử spell Tiếng gọi quê hương - spell set khá nhìu Dummy và UnitGroup của Dummy. Nếu ai cast trên 10 lần mà ko lag thì quote lại cho mình.
http://www.epicwar.com/maps/174014/
- Mẫu này cũg là map trên nhưng ko có Doodad và đè lên nhau, cast vô tư.
http://www.epicwar.com/maps/174015/
P.s: Mọi ng` so sánh thử hộ mình, còn về spell trên đã leak hết 100%, mọi ng` có thể vào map coi thử
[spoil]
Mã:
Lava Way
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) |cffFF00CCTiÕng Gäi Quª H¬ng|r
Actions
Set LavaUnit = (Triggering unit)
Set TempLavaUnit = (Position of LavaUnit)
Set TempLavaTarger = (Target point of ability being cast)
Set AngleWave = (Angle from TempLavaUnit to TempLavaTarger)
Do Multiple ActionsFor each (Integer A) from 1 to ((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit) x 4), do (Actions)
Loop - Actions
[COLOR="Red"]Unit - Create 1 Lava Dummy for (Owner of LavaUnit) at (TempLavaUnit offset by ((Real((Integer A))) x 175.00) towards AngleWave degrees) facing (Facing of LavaUnit) degrees[/COLOR]
Set LavaDummy[(Integer A)] = (Last created unit)
Set TempLavaDummy[(Integer A)] = (Position of LavaDummy[(Integer A)])
Unit - Add a 2.00 second Generic expiration timer to LavaDummy[(Integer A)]
Set LavaGroup = (Units within 180.00 of TempLavaDummy[(Integer A)] matching ((((Matching unit) belongs to an enemy of (Owner of LavaUnit)) Equal to (==) True) and (((Matching unit) is alive) Equal to (==) True)))
Unit Group - Pick every unit in LavaGroup and do (Actions)
Loop - Actions
Unit - Cause LavaUnit to damage (Picked unit), dealing (((Real((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit))) x 5.00) x (Real((Strength of LavaUnit (Exclude bonuses))))) damage of attack type Hero and damage type Defensive
Floating Text - Create floating text that reads ((String(((Real((Strength of LavaUnit (Include bonuses)))) x ((Real((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit))) x 5.00)))) + damage) at (Position of (Picked unit)) with Z offset 0.00, using font size 10.50, color (100.00%, 32.00%, 32.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
[COLOR="Red"]Custom script: call RemoveLocation(udg_TempLavaDummy[GetForLoopIndexA()])[/COLOR]
Custom script: call RemoveLocation(udg_TempLavaUnit)
Custom script: call RemoveLocation(udg_TempLavaTarger)
[COLOR="Red"]Custom script: call DestroyGroup(udg_LavaGroup)[/COLOR]
Spell đã remove leak thế đó sao
, map trống dĩ nhiên nhẹ, nên leak vẫn không ảnh hưởng mấy so với map đầy đủ các object và mấy thứ khác rồi bạn.
Chỉnh sửa cuối:




