YAN[asian]
Mario & Luigi
Sao mình làm Spell như này : Tăng giáp cho unit dần dần từ 1,2,3,4... đến max 20 (ở lvl 4), sau mỗi lần unit nhận dam thì - số giáp đi 1. Ko hiểu sao sau khi hú giáp lần đầu, mỗi lần nhận dam thì giáp - đi 1, hú giáp lần 2, nhận dam thì giáp lại -2 mỗi hit, lần 3 thì -3,... Xem đi xem lại vẫn ko hiểu sai ở đâu, ai giúp fix dùm cái...
Trigger 1[spoil]
[/spoil]
Trigger 2[spoil]
[/spoil]
Trigger 3[spoil]
[/spoil]
Trigger 4[spoil]
[/spoil]
Trigger 1[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 018 Copy Copy
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to ArmorStack
Actions
Set HWUnit[0] = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Armor Stack (+2) for HWUnit[0]) Greater than 0
Then - Actions
Else - Actions
Unit - Add Armor Stack (+2) to HWUnit[0]
Animation - Change HWUnit[0]'s animation speed to 50.00% of its original speed
Trigger - Turn off Untitled Trigger 056 <gen>
Trigger - Turn on Untitled Trigger 018 Copy 2 <gen>
Trigger - Add to Untitled Trigger 018 Copy 2 <gen> the event (Time - Every (0.60 - ((Real((Level of ArmorStack for HWUnit[0]))) x 0.10)) seconds of game time)[/SIZE][/INDENT]
Trigger 2[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 018 Copy 2
Events
Conditions
Actions
Set ArmorLevel = (Level of Armor Stack (+2) for HWUnit[0])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ArmorLevel Equal to ((4 x (Level of ArmorStack for HWUnit[0])) + 5)
Then - Actions
Unit - Order HWUnit[0] to Stop
Else - Actions
Unit - Set level of Armor Stack (+2) for HWUnit[0] to (ArmorLevel + 1)[/SIZE][/INDENT]
Trigger 3[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 071
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to ArmorStack
Actions
Trigger - Turn off Untitled Trigger 018 Copy 2 <gen>
Animation - Change HWUnit[0]'s animation speed to 100.00% of its original speed
Trigger - Turn on Untitled Trigger 056 <gen>
Trigger - Add to Untitled Trigger 056 <gen> the event (Unit - HWUnit[0] Takes damage)[/SIZE][/INDENT]
Trigger 4[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 056
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Armor Stack (+2) for HWUnit[0]) Equal to 1
Then - Actions
Else - Actions
Set ArmorLevel = (Level of Armor Stack (+2) for HWUnit[0])
Unit - Set level of Armor Stack (+2) for HWUnit[0] to (ArmorLevel - 1)[/SIZE][/INDENT]
Chỉnh sửa cuối: