- 22/8/06
- 954
- 6
hic ai chỉ giúp em cái này đi mà, vẫn chưa biết làm sao mà tính % được :(
Spell sẽ làm tương tự như spell này
Imediate kill
Events
Unit - A unit Is attacked
Conditions
((Unit-type of (Attacking unit)) Equal to Ogre Lord) and ((Life of (Attacked unit)) Less than or equal to (Real(((Level of Two Heads Power for (Attacking unit)) x 200))))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 10
Then - Actions
Animation - Play (Attacking unit)'s Attack slam animation
Floating Text - Create floating text that reads Critical Hit! above (Triggering unit) with Z offset 3.00, using font size 10.00, color (100.00%, 40.00%, 40.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Unit - Kill (Attacked unit)
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Else - Actions
Do nothing
Sử dụng lệnh:
(Random integer number between 1 and 100) Less than or equal to 30
=> Action của 30% này
(Random integer number between 31 and 100) Less than or equal to 60
=> Action của 30% tiếp
(Random integer number between 61 and 100) Less than or equal to 90
=> Action của 30% còn lại
Chả rõ đúng hay không mà đại loại là như thế

)
