cách tạo một spell:KAMENJOKU 1:Tạo 3 con custom footman +Con thứ nhất tên ummy Effect Sửa: Abilities-Normal:Locust,invulnerable(Neultral) Maximum Pitch Angle(degress):-90.00 Art-Model flie:Tome of remaining Scaling Value :5.00 Shadow image unit:None Combat-Attacks Enables:None +Con thứ haiummy Kame Y NHƯ TRÊN!! Trừ: Scaling Value :3.00 Art-Model flie:Revive Hero +Con thứ 3ummy Thunderclap Y NHƯ CÁI Thứ NHẤT Trừ Model flie:Thunder Clap XONG MỘT BƯỚC . ___________Auto Merge________________ . 3 Con: Dummy Effect Dummy Kame Dummy Thunder Clap
Đến Phần Quan Trọng Tên:Spell Trước hết tạo:Varỉables: +Angel-->Real Array(1)-->có phần màu xanh gạch dưới màu xanh để là 0(Defaults)--->Xong 1 cái +Cast-->Unit Array(1)-->None-->1 thêm 1 cái nữa +Dmg-->Real Array(1)--> 0(Defaults)--->Xong +Dummy->Unit Array(1)-->None +Group-->Unit Group-->Empty Unit Group(Defaults) +In-->Interger-->0(Defaults) +Mui-->Interger-->0(Defaults) +TempLoc-->Point Array(1)-->None +Tick-->Integer Array(1)-->0(Defaults) Sau đó nhấn ok& làm mấy bước Trigger như sau: Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Kamejoko Actions Set Mui = (Mui + 1) Set Cast[Mui] = (Triggering unit) Animation - Play Cast[Mui]'s attack,slam animation Set TempLoc[0] = (Position of Cast[Mui]) Set TempLoc[1] = (Target point of ability being cast) Set Angle[Mui] = (Facing of Cast[Mui]) Set Tick[Mui] = 25 Set Dmg[Mui] = (100.00 + (5.00 x (Real((Level of Kamejoko for Cast[Mui]))))) Unit - Create 1 Dummy Kame for (Owner of Cast[Mui]) at TempLoc[0] facing Angle[Mui] degrees Set Dummy[Mui] = (Last created unit) Unit - Add a 2.00 second Generic expiration timer to Dummy[Mui] Unit - Create 1 Dummy Thunderclap for (Owner of Cast[Mui]) at TempLoc[0] facing Angle[Mui] degrees Set Dummy[Mui] = (Last created unit) Unit - Add a 2.00 second Generic expiration timer to Dummy[Mui] Unit - Create 1 Dummy Effect for (Owner of Cast[In]) at TempLoc[0] facing Angle[In] degrees Set Dummy[Mui] = (Last created unit) Unit - Add a 3.00 second Generic expiration timer to Dummy[Mui] Custom script: call RemoveLocation (udg_TempLoc[0]) Xong cái trigger Spell . ___________Auto Merge________________ . Tạo một cái trigger:Effect & làm như sau: Effect Events Time - Every 0.04 seconds of game time Conditions Actions For each (Integer In) from 1 to Mui, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Tick[In] Equal to 0 Then - Actions Set Mui = (Mui - 1) For each (Integer B) from In to Mui, do (Actions) Loop - Actions Set Angle[(Integer B)] = Angle[((Integer B) + 1)] Set Cast[(Integer B)] = Cast[((Integer B) + 1)] Set Dummy[(Integer B)] = Dummy[((Integer B) + 1)] Set Tick[(Integer B)] = Tick[((Integer B) + 1)] Set Dmg[(Integer B)] = Dmg[((Integer B) + 1)] Else - Actions Set TempLoc[2] = (Position of Dummy[In]) Set TempLoc[3] = (TempLoc[2] offset by 25.00 towards Angle[In] degrees) Unit - Move Dummy[In] instantly to TempLoc[3] Set Group = (Units within 300.00 of TempLoc[2] matching (((Matching unit) belongs to an enemy of (Owner of Cast[In])) Equal to True)) Unit Group - Pick every unit in Group and do (Actions) Loop - Actions Unit - Cause Dummy[In] to damage (Picked unit), dealing Dmg[In] damage of attack type Spells and damage type Normal Camera - Sway the camera source for (Owner of (Picked unit)) with magnitude 10.00 and velocity 0.10 Camera - Shake the camera for (Owner of (Picked unit)) with magnitude 5.00 Camera - Stop swaying/shaking the camera for (Owner of (Picked unit)) Custom script: call DestroyGroup (udg_Group) Custom script: call RemoveLocation (udg_TempLoc[3]) Animation - Reset Cast[In]'s animation Thế là xong . ___________Auto Merge________________ . Thêm cái này : Melee Initialization Events Map initialization Conditions Actions Visibility - Disable fog of war Visibility - Disable black mask . ___________Auto Merge________________ . Đóng chủ đề vì Spam mong các bạn hãy sang toptic Khác