- Joined
- Nov 11, 2009
- Messages
- 172
I made my first attempt, and wondering what I did wrong 
-
Bleed
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Bleed
-
-
Actions
-
Set Bleed_Integer3 = (Bleed_Integer3 + 1)
-
Set Bleed_Caster[Bleed_Integer3] = (Triggering unit)
-
Set Bleed_Counter[Bleed_Integer3] = 5.00
-
Set Bleed_Target[Bleed_Integer3] = (Target unit of ability being cast)
-
Set Bleed_Damage[Bleed_Integer3] = (Real(((Strength of Bleed_Caster[Bleed_Integer3] (Include bonuses)) x 2)))
-
If (Bleed_Integer3 Greater than 0) then do (Trigger - Turn on BleedLoop <gen>) else do (Do nothing)
-
-
-
BleedLoop
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Bleed_Integer3 Greater than 0
-
-
Then - Actions
-
Set Bleed_Integer = 1
-
For each (Integer Bleed_Integer2) from 1 to Bleed_Integer3, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Bleed_Counter[Bleed_Integer] Greater than 0.00
-
-
Then - Actions
-
Unit - Cause Bleed_Caster[Bleed_Integer] to damage Bleed_Target[Bleed_Integer], dealing Bleed_Damage[Bleed_Integer] damage of attack type Spells and damage type Normal
-
Set Bleed_Counter[Bleed_Integer] = (Bleed_Counter[Bleed_Integer] - 1.00)
-
Set Bleed_Integer = (Bleed_Integer + 1)
-
-
Else - Actions
-
Set Bleed_Integer3 = (Bleed_Integer3 - 1)
-
-
-
-
-
-
Else - Actions
-
-
If (Bleed_Integer3 Equal to 0) then do (Trigger - Turn off (This trigger)) else do (Do nothing)
-
-