If i had a trigger like:
Untitled Trigger 002
I want to know a few things. First is: will it work? Second is: is there any way to take a units attack damage, store it in a variable/add it to a trigger then add 20 damage to it (for a critical hit) Third is:will this affect every unit and if it does what would happen if, say 50 units attacked at once. Last question, how do you edit a units health, because editing the base health doesn't seem to do anything.
If you have a better trigger please post. Thanks in advance, tbjl2006
Untitled Trigger 002
Code:
Events
Unit - A unit Is attacked
Conditions
Actions
Set Attack_Percent = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
My_Variable Equal to 1
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 0.00 damage of attack type Normal and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
My_Variable Equal to 2
Then - Actions
Unit - Order (Attacking unit) to Attack (Attacked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
My_Variable Equal to 3
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 50.00 damage of attack type Normal and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
My_Variable Equal to 4
Then - Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 10.00 damage of attack type Normal and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
My_Variable Equal to 5
Then - Actions
Unit - Order (Attacked unit) to Human Mountain King - Storm Bolt (Attacking unit)
Else - Actions
I want to know a few things. First is: will it work? Second is: is there any way to take a units attack damage, store it in a variable/add it to a trigger then add 20 damage to it (for a critical hit) Third is:will this affect every unit and if it does what would happen if, say 50 units attacked at once. Last question, how do you edit a units health, because editing the base health doesn't seem to do anything.
If you have a better trigger please post. Thanks in advance, tbjl2006