sukaraki
Donkey Kong
- 12/5/08
- 356
- 9
TO roswella2 :là chiêu Omnislash mà, cái này anh lục lại trong topic cũ của anh
Chuẩn bị :
- tạo biến unit gồm : omnicaster, omni, omnitarget
- tạo 1 chiêu item (base từ chiêu damage bonus) tên omnieffect, gắn các phoenix fire trên right hand, left hand, head, chest ... nói chung gắn bao nhiêu thì tùy.
trigger 1 :
trigger 2 : (chuột phải, turn off lúc map khởi tạo)
trigger 3 :
HÉHÉHÉ ! XONG RÀI
Tóm tắt : khi cast, sẽ tạo 1 con dummy ko đánh đc (do pause rồi) , hide con caster đi. Mỗi 0.8 giây, con dummy sẽ nhảy tới vị trí của 1 con trong đám lính gần nó range 600 và dam nó = 100 + level chiêu X 50 , ta thấy nó đánh nhờ animation attack. Khi nhảy nhờ effect phượng hoàng nên ta thấy đc đường nhảy của nó ,rất đẹp. Sau khoảng thời gian = level chiêu X 5 + 10, tức lv 1 thì 15s, lv 2 thì 20s, lv 3 thì 25 s - move thằng caster lại chỗ con dummy và con dummy sẽ đc remove.
Chuẩn bị :
- tạo biến unit gồm : omnicaster, omni, omnitarget
- tạo 1 chiêu item (base từ chiêu damage bonus) tên omnieffect, gắn các phoenix fire trên right hand, left hand, head, chest ... nói chung gắn bao nhiêu thì tùy.
trigger 1 :
event : a unit start the effect of ability
condittions : abi being casted equal to omnislash
actions :
- set omnicaster = casting unit
- create 1 unit type of omnicaster at position of omnicaster face facing angle of omnicaster.
- set omni = last created unit.
- pause omni.
- make omni invulnerable.
- animation : change omni vertex coloring : 100 , 100 , 0 , 30.
- add ability omnieffect to omni.
- change omni animation speed to 200%
- hide omnicaster.
- start omnitimer as one shot timer exprite at [(level of omnislash for omnicaster X 5) + 10 ]
- turn on trigger 2.
trigger 2 : (chuột phải, turn off lúc map khởi tạo)
event : every 0.8 second of the game
actions :
- ifthenelse multi
IF number of unit in ( unit trong phạm vi 600 600 của omni ) matching ( matching unit belong to an enemy of owner of omni equal to true ) AND ( matching unit is alive equal to true ) greater than 1
THEN
- PICK random 1 unit in ( phạm vi 600 600 của omni ) matching ( matching unit belong to an enemy of owner of omni equal to true ) AND ( matching unit is alive equal to true ) AND ( matching unit not equal to omnitarget )
- set omnitarget = picked unit .
- move omni to position of omnitarget face omnitarget.
- animation : Play animation attack của omni .
- damage target : cause omnicaster damage target omnitarget (100 + (level of omnislash for omnicaster X 50 ))
ELSE
- PICK random 1 unit in ( phạm vi 600 600 của omni ) matching ( matching unit belong to an enemy of owner of omni equal to true ) AND ( matching unit is alive equal to true )
- set omnitarget = picked unit .
- move omni to position of omnitarget face omnitarget.
- animation : Play animation attack của omni .
- damage target : cause omnicaster damage target omnitarget (100 + (level of omnislash for omnicaster X 50 ))
trigger 3 :
event : omnitimer exprites
actions :
- turn of trigger 2
- unhide omnicaster
- move omnicaster to position of omni
- remove omni from the game
- set omnitarget = no unit
- set omni = no unit
HÉHÉHÉ ! XONG RÀI

Tóm tắt : khi cast, sẽ tạo 1 con dummy ko đánh đc (do pause rồi) , hide con caster đi. Mỗi 0.8 giây, con dummy sẽ nhảy tới vị trí của 1 con trong đám lính gần nó range 600 và dam nó = 100 + level chiêu X 50 , ta thấy nó đánh nhờ animation attack. Khi nhảy nhờ effect phượng hoàng nên ta thấy đc đường nhảy của nó ,rất đẹp. Sau khoảng thời gian = level chiêu X 5 + 10, tức lv 1 thì 15s, lv 2 thì 20s, lv 3 thì 25 s - move thằng caster lại chỗ con dummy và con dummy sẽ đc remove.

