- 6/9/05
Mã:
Untitled Trigger 002
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Twisting Slash (Hero)
Actions
Set Caster = (Triggering unit)
Set CasLoc = (Position of (Triggering unit))
Set Real = 0.00
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of Caster) at CasLoc facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Bladestorm to (Last created unit)
Animation - Change (Last created unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency
Unit - Order (Last created unit) to Orc Blademaster - Bladestorm
Set LocOffset[(Integer A)] = (CasLoc offset by 700.00 towards Real degrees)
Unit - Order (Last created unit) to Move To LocOffset[(Integer A)]
Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
Unit - Cause Caster to damage circular area after 0.00 seconds of radius 300.00 at LocOffset[(Integer A)], dealing 300.00 damage of attack type Spells and damage type Normal
Set Real = (Real + (360.00 / 8.00))
Custom script: call RemoveLocation (udg_LocOffset[bj_forLoopAIndex])
Custom script: call RemoveLocation (udg_CasLoc)
Đây là spell tạo 8 dummy samurai và lệnh cho dummy đó xài bladestorm thành 1 vòng tròn
vật liệu cần có :
dummy unit có abilities : locus, invulnerability . model samurai và ko attack
spell Twisting Slash (Hero) base từ spell bladestorm
các biến cần có : Caster(Unit);CasLoc(Point);Real(Real) ko có array
LocOffset(Point) có 1 array
nếu ko hiểu thì vào map demo có attach ở dưới mở ra mà xem




