This is the new skill i'm working with. However i've got some problems with it =/
This skill is called bash, and it damages for (Skill Level) x Strenght of the Hero and also has a 5% chance per level to stun it's target, starting with 10% on level 1. However my skill is not damaging its target and i don't know how to make a % chance to stun. Only my floating text is working correct =/
Thiss trigger add +1 to the variable BashLevel everytime you learn the Bash skill. I'm doing that because i haven't found out any other way to reference skill levels. BashLevel is Integer and BashLevel_Copy Real.
This is the skill trigger. It was supposed to damage for skill lvl x hero str and has a little chance to stun. However only the floating text is working =/
I want to make it MUI and MPI, what i need to change?
My skill is based of Storm Bolt (even the hero as the dummy skills)
Thanks very much =D
This skill is called bash, and it damages for (Skill Level) x Strenght of the Hero and also has a 5% chance per level to stun it's target, starting with 10% on level 1. However my skill is not damaging its target and i don't know how to make a % chance to stun. Only my floating text is working correct =/
Code:
Bash Level
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Bash (Swordsman)
Actions
Set ______BashLevel[(Player number of (Owner of (Triggering unit)))] = (______BashLevel[(Player number of (Owner of (Triggering unit)))] + 1)
Set ______BashLevel_Copy[(Player number of (Owner of (Triggering unit)))] = (______BashLevel_Copy[(Player number of (Owner of (Triggering unit)))] + 1.00)
Thiss trigger add +1 to the variable BashLevel everytime you learn the Bash skill. I'm doing that because i haven't found out any other way to reference skill levels. BashLevel is Integer and BashLevel_Copy Real.
Code:
Bash
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Bash (Swordsman)
Actions
Set NoviceStrenght[(Player number of (Owner of (Triggering unit)))] = (Strength of (Triggering unit) (Include bonuses))
Set ________SwordsmanAttack[(Player number of (Owner of (Triggering unit)))] = (Real(NoviceStrenght[(Player number of (Owner of (Triggering unit)))]))
Set _Target = (Target unit of ability being cast)
Set _Caster = (Triggering unit)
Unit - Cause _Caster to damage _Target, dealing ((______BashLevel_Copy[(Player number of (Owner of _Caster))] + 1.00) x (Real((Strength of _Caster (Include bonuses))))) damage of attack type Hero and damage type Normal
Set _TempPoint = (Position of _Target)
For each (Integer A) from 0 to 100, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
______BashLevel_Copy[(Player number of (Owner of _Caster))] Equal to 1.00
(Integer A) Less than or equal to 10
Then - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at _TempPoint facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Dummy Stun (3 seconds) to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Floating Text - Create floating text that reads |cffFFCC00Bash!!|r above _Caster with Z offset 90.00, using font size 28.00, color (100.00%, 0.00%, 100.00%), and 10.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
______BashLevel_Copy[(Player number of (Owner of _Caster))] Equal to 2.00
(Integer A) Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at _TempPoint facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Dummy Stun (3 seconds) to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Floating Text - Create floating text that reads |cffFFCC00Bash!!|r above _Caster with Z offset 90.00, using font size 28.00, color (100.00%, 0.00%, 100.00%), and 10.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 25.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
______BashLevel_Copy[(Player number of (Owner of _Caster))] Equal to 3.00
(Integer A) Less than or equal to 20
Then - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at _TempPoint facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Dummy Stun (3 seconds) to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Floating Text - Create floating text that reads |cffFFCC00Bash!!|r above _Caster with Z offset 90.00, using font size 28.00, color (100.00%, 0.00%, 100.00%), and 10.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 25.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
______BashLevel_Copy[(Player number of (Owner of _Caster))] Equal to 4.00
(Integer A) Less than or equal to 25
Then - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at _TempPoint facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Dummy Stun (3 seconds) to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Floating Text - Create floating text that reads |cffFFCC00Bash!!|r above _Caster with Z offset 90.00, using font size 28.00, color (100.00%, 0.00%, 100.00%), and 10.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 25.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Else - Actions
Custom script: call RemoveLocation (udg__TempPoint)
This is the skill trigger. It was supposed to damage for skill lvl x hero str and has a little chance to stun. However only the floating text is working =/
I want to make it MUI and MPI, what i need to change?
My skill is based of Storm Bolt (even the hero as the dummy skills)
Thanks very much =D