VanBaoPhong
Mr & Ms Pac-Man
- 25/2/07
- 203
- 2
Ồ, trong WE có 1 cái khá rắc rối là lệnh Waiting. Lệnh này có thể làm Spell làm bằng Trigger ko có dc tác dụng như mong muốn. Mình post lên 1 Spell làm bằng Trigger có dùng lệnh Wait, và nó ko gây damage. Các bạn xem có lỗi hay sai chỗ nào ko thì chỉ hộ mình nhé.
Sunrise
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sunrise
Actions
Set GlobalCaster = (Casting unit)
Set GlobalAbiCastingLoc = (Target point of ability being cast)
Set SunriseGroup = (Units within ((250.00 + (50.00 x (Real((Level of Sunrise for GlobalCaster))))) + 1.00) of GlobalAbiCastingLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of GlobalCaster)) Equal to True) and (((M
Unit Group - Pick every unit in SunriseGroup and do (Actions)
Loop - Actions
Set GlobalPick = (Picked unit)
Special Effect - Create a special effect attached to the origin of GlobalPick using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Wait 0.35 seconds
Unit - Cause GlobalCaster to damage GlobalPick, dealing (100.00 + (50.00 x (Real((Level of Sunrise for GlobalCaster))))) damage of attack type Spells and damage type Fire
Wait 0.60 seconds
Custom script: call RemoveLocation(udg_GlobalAbiCastingLoc)
Custom script: call DestroyGroup(udg_SunriseGroup)
Sunrise
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sunrise
Actions
Set GlobalCaster = (Casting unit)
Set GlobalAbiCastingLoc = (Target point of ability being cast)
Set SunriseGroup = (Units within ((250.00 + (50.00 x (Real((Level of Sunrise for GlobalCaster))))) + 1.00) of GlobalAbiCastingLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of GlobalCaster)) Equal to True) and (((M
Unit Group - Pick every unit in SunriseGroup and do (Actions)
Loop - Actions
Set GlobalPick = (Picked unit)
Special Effect - Create a special effect attached to the origin of GlobalPick using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Wait 0.35 seconds
Unit - Cause GlobalCaster to damage GlobalPick, dealing (100.00 + (50.00 x (Real((Level of Sunrise for GlobalCaster))))) damage of attack type Spells and damage type Fire
Wait 0.60 seconds
Custom script: call RemoveLocation(udg_GlobalAbiCastingLoc)
Custom script: call DestroyGroup(udg_SunriseGroup)



