Moderator
M
Moderator
11:12, 2nd Mar 2010
TriggerHappy:
Coding seemed fine and the effect was decent. Good tooltip too.
TriggerHappy:
Coding seemed fine and the effect was decent. Good tooltip too.
Vae Victis Init

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Vae Victis

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




VV_index1 Equal to 0



Then - Actions




Trigger - Turn on Vae Victis Per <gen>



Else - Actions


Set VV_index1 = (VV_index1 + 1)


Set VV_index2 = (VV_index2 + 1)


Set VV_loop_boolean[VV_index2] = True


Set VV_caster[VV_index2] = (Triggering unit)


Set VV_target[VV_index2] = (Target unit of ability being cast)
Vae Victis Per

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


For each (Integer VV_index3) from 1 to VV_index2, do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






VV_loop_boolean[VV_index3] Equal to True





Then - Actions






Set VV_counter[VV_index3] = (VV_counter[VV_index3] + 0.05)






-------- -------------------------------------------------------------------------------- --------






-------- This set of variables will determine the % of health/mana drained. --------






-------- -------------------------------------------------------------------------------- --------






Set VV_initialRL[VV_index3] = ((Max life of VV_target[VV_index3]) x (0.15 x (Real((Level of Vae Victis for VV_caster[VV_index3])))))






Set VV_finalRL[VV_index3] = (VV_initialRL[VV_index3] / (2.00 + (Real((Level of Vae Victis for VV_caster[VV_index3])))))






Set VV_initialRM[VV_index3] = ((Max mana of VV_target[VV_index3]) x (0.15 x (Real((Level of Vae Victis for VV_caster[VV_index3])))))






Set VV_finalRM[VV_index3] = (VV_initialRM[VV_index3] / (2.00 + (Real((Level of Vae Victis for VV_caster[VV_index3])))))






-------- -------------------------------------------------------------------------------- --------






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 0.15







Then - Actions








Unit - Pause VV_caster[VV_index3]








Unit - Pause VV_target[VV_index3]








Animation - Change VV_caster[VV_index3]'s animation speed to 0.00% of its original speed








Animation - Change VV_target[VV_index3]'s animation speed to 0.00% of its original speed







Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 1.00







Then - Actions








Unit - Cause VV_caster[VV_index3] to damage VV_target[VV_index3], dealing VV_finalRL[VV_index3] damage of attack type Chaos and damage type Normal








Unit - Set mana of VV_target[VV_index3] to ((Mana of VV_target[VV_index3]) - VV_finalRM[VV_index3])








Unit - Set life of VV_caster[VV_index3] to ((Life of VV_caster[VV_index3]) + VV_finalRL[VV_index3])








Unit - Set mana of VV_caster[VV_index3] to ((Mana of VV_caster[VV_index3]) + VV_finalRM[VV_index3])








Special Effect - Create a special effect attached to the chest of VV_target[VV_index3] using Objects\Spawnmodels\Human\HumanBlood\HumanBloodRifleman.mdl








Special Effect - Destroy (Last created special effect)








Special Effect - Create a special effect attached to the weapon of VV_caster[VV_index3] using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl








Special Effect - Destroy (Last created special effect)







Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 2.00







Then - Actions








Unit - Cause VV_caster[VV_index3] to damage VV_target[VV_index3], dealing VV_finalRL[VV_index3] damage of attack type Chaos and damage type Normal








Unit - Set mana of VV_target[VV_index3] to ((Mana of VV_target[VV_index3]) - VV_finalRM[VV_index3])








Unit - Set life of VV_caster[VV_index3] to ((Life of VV_caster[VV_index3]) + VV_finalRL[VV_index3])








Unit - Set mana of VV_caster[VV_index3] to ((Mana of VV_caster[VV_index3]) + VV_finalRM[VV_index3])








Special Effect - Create a special effect attached to the chest of VV_target[VV_index3] using Objects\Spawnmodels\Human\HumanBlood\HumanBloodRifleman.mdl








Special Effect - Destroy (Last created special effect)








Special Effect - Create a special effect attached to the weapon of VV_caster[VV_index3] using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl








Special Effect - Destroy (Last created special effect)







Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 3.00







Then - Actions








Unit - Cause VV_caster[VV_index3] to damage VV_target[VV_index3], dealing VV_finalRL[VV_index3] damage of attack type Chaos and damage type Normal








Unit - Set mana of VV_target[VV_index3] to ((Mana of VV_target[VV_index3]) - VV_finalRM[VV_index3])








Unit - Set life of VV_caster[VV_index3] to ((Life of VV_caster[VV_index3]) + VV_finalRL[VV_index3])








Unit - Set mana of VV_caster[VV_index3] to ((Mana of VV_caster[VV_index3]) + VV_finalRM[VV_index3])








Special Effect - Create a special effect attached to the chest of VV_target[VV_index3] using Objects\Spawnmodels\Human\HumanBlood\HumanBloodRifleman.mdl








Special Effect - Destroy (Last created special effect)








Special Effect - Create a special effect attached to the weapon of VV_caster[VV_index3] using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl








Special Effect - Destroy (Last created special effect)








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










(Level of Vae Victis for VV_caster[VV_index3]) Equal to 1









Then - Actions










Unit - Unpause VV_caster[VV_index3]










Unit - Unpause VV_target[VV_index3]










Animation - Change VV_caster[VV_index3]'s animation speed to 100.00% of its original speed










Animation - Change VV_target[VV_index3]'s animation speed to 100.00% of its original speed










Set VV_counter[VV_index3] = 0.00










Set VV_index1 = (VV_index1 - 1)










Set VV_loop_boolean[VV_index3] = False










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












VV_index1 Equal to 0











Then - Actions












Set VV_index2 = 0












Trigger - Turn off (This trigger)











Else - Actions










Skip remaining actions









Else - Actions







Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 4.00







Then - Actions








Unit - Cause VV_caster[VV_index3] to damage VV_target[VV_index3], dealing VV_finalRL[VV_index3] damage of attack type Chaos and damage type Normal








Unit - Set mana of VV_target[VV_index3] to ((Mana of VV_target[VV_index3]) - VV_finalRM[VV_index3])








Unit - Set life of VV_caster[VV_index3] to ((Life of VV_caster[VV_index3]) + VV_finalRL[VV_index3])








Unit - Set mana of VV_caster[VV_index3] to ((Mana of VV_caster[VV_index3]) + VV_finalRM[VV_index3])








Special Effect - Create a special effect attached to the chest of VV_target[VV_index3] using Objects\Spawnmodels\Human\HumanBlood\HumanBloodRifleman.mdl








Special Effect - Destroy (Last created special effect)








Special Effect - Create a special effect attached to the weapon of VV_caster[VV_index3] using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl








Special Effect - Destroy (Last created special effect)








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










(Level of Vae Victis for VV_caster[VV_index3]) Equal to 2









Then - Actions










Unit - Unpause VV_caster[VV_index3]










Unit - Unpause VV_target[VV_index3]










Animation - Change VV_caster[VV_index3]'s animation speed to 100.00% of its original speed










Animation - Change VV_target[VV_index3]'s animation speed to 100.00% of its original speed










Set VV_counter[VV_index3] = 0.00










Set VV_index1 = (VV_index1 - 1)










Set VV_loop_boolean[VV_index3] = False










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












VV_index1 Equal to 0











Then - Actions












Set VV_index2 = 0












Trigger - Turn off (This trigger)











Else - Actions










Skip remaining actions









Else - Actions







Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








VV_counter[VV_index3] Equal to 5.00







Then - Actions








Unit - Cause VV_caster[VV_index3] to damage VV_target[VV_index3], dealing VV_finalRL[VV_index3] damage of attack type Chaos and damage type Normal








Unit - Set mana of VV_target[VV_index3] to ((Mana of VV_target[VV_index3]) - VV_finalRM[VV_index3])








Unit - Set life of VV_caster[VV_index3] to ((Life of VV_caster[VV_index3]) + VV_finalRL[VV_index3])








Unit - Set mana of VV_caster[VV_index3] to ((Mana of VV_caster[VV_index3]) + VV_finalRM[VV_index3])








Special Effect - Create a special effect attached to the chest of VV_target[VV_index3] using Objects\Spawnmodels\Human\HumanBlood\HumanBloodRifleman.mdl








Special Effect - Destroy (Last created special effect)








Special Effect - Create a special effect attached to the weapon of VV_caster[VV_index3] using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl








Special Effect - Destroy (Last created special effect)








Unit - Unpause VV_caster[VV_index3]








Unit - Unpause VV_target[VV_index3]








Animation - Change VV_caster[VV_index3]'s animation speed to 100.00% of its original speed








Animation - Change VV_target[VV_index3]'s animation speed to 100.00% of its original speed








Set VV_counter[VV_index3] = 0.00








Set VV_index1 = (VV_index1 - 1)








Set VV_loop_boolean[VV_index3] = False








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










VV_index1 Equal to 0









Then - Actions










Set VV_index2 = 0










Trigger - Turn off (This trigger)









Else - Actions







Else - Actions





Else - Actions