Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Stackable Critical Strike.w3x
Variables
Stackable Critical Strike
Stackable Critical Strike 1
Stackable Critical Strike 2
Stackable Critical Strike 3
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
SC_Ability
abilcode
No
SC_Buff
abilcode
No
SC_Hero
unit
No
SC_Real
real
No
SC_Stacks
integer
No
SC_unit
unit
No
Stackable Critical Strike 1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Critical Strike
Actions
Set Variable Set SC_Buff = "A000"
Set Variable Set SC_Hero = (Learning Hero)
Set Variable Set SC_Ability = "A001"
Set Variable Set SC_Stacks = "0"
Set Variable Set SC_unit = (Attacked unit)
Unit - Add SC_Buff to (Learning Hero)
Stackable Critical Strike 2
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to SC_Hero
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacked unit) Not equal to SC_unit
Then - Actions
Set Variable Set SC_Stacks = "0"
Else - Actions
Set Variable Set SC_unit = (Attacked unit)
Trigger - Turn on Stackable_Critical_Strike_3 <gen>
Trigger - Add to Stackable_Critical_Strike_3 <gen> the event (SC_unit Takes damage)
Stackable Critical Strike 3
Events
Conditions
(Damage source) Equal to SC_Hero
Actions
Set Variable Set SC_Stacks = (SC_Stacks + 1)
Unit - Set level of SC_Buff for SC_Hero to SC_Stacks
-------- 20% chance for mortal strike after 10 attacks --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SC_Stacks Greater than or equal to 10
(Random integer number between 1 and 10) Greater than or equal to 9
Then - Actions
Special Effect - Create a special effect attached to the head (Unexpected type: 'attachpoint') of SC_unit using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
Unit - Cause SC_Hero to damage SC_unit , dealing ((Max life of SC_unit) x 0.02) damage of attack type Chaos and damage type Normal
Else - Actions
-------- ............. --------
-------- 10% chance for deadly strike after 15 attacks --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SC_Stacks Greater than or equal to 15
(Random integer number between 1 and 100) Greater than 90
Then - Actions
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of SC_unit using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Cause SC_Hero to damage SC_unit , dealing ((Max life of SC_unit) x 0.04) damage of attack type Chaos and damage type Normal
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.