whisky137
Dragon Quest
- 7/2/07
- 1,318
- 143
Mình làm một skill passive 10% cast Mana burn random 5 enemy units trong 200 AOE của Hero khi Hero tấn công.
Nhưng mình ko biết làm cách nào để order dummy tấn công random 5 enemy cả, trong này chỉ có random 1 enemy thôi :(, ko muốn nó bem tất cả enemy units trong Group đấy.
Bác nào giúp mình với :)
Mã:
Passive Critical Strike
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) is A structure) Equal to False
(Level of Critical Strike for (Attacking unit)) Greater than or equal to 1
(Level of Mana Burn for (Attacking unit)) Greater than or equal to 1
(Random percentage) Less than or equal to 10.00
Actions
Set Temp_Point = (Position of (Attacking unit))
Unit - Create 1 Dummy Frozen for (Owner of (Attacking unit)) at Temp_Point facing Default building facing degrees
Unit - Add Mana Burn <Unit> to (Last created unit)
Unit - Set level of Mana Burn <Unit> for (Last created unit) to (Level of Mana Burn for (Attacking unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Set UnitGroupExplosion = (Units within 200.00 of Temp_Point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
Unit Group - Pick every unit in UnitGroupExplosion and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn (Picked unit)
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: call DestroyGroup( udg_UnitGroupExplosion)
Nhưng mình ko biết làm cách nào để order dummy tấn công random 5 enemy cả, trong này chỉ có random 1 enemy thôi :(, ko muốn nó bem tất cả enemy units trong Group đấy.
Bác nào giúp mình với :)
hình như code này không hoạt động



