BubbleInit
Bubble Loop
that would be kind.
if anyone got the answer it would be sweet
im kinda new at this and you guys are like awesome with coding
-
Unit - A unit Starts the effect of an ability
-
(Ability being cast) Equal to Bubble
-
Trigger - Run Mui NewIndex <gen> (ignoring conditions)
-
Set Bubble_Caster[CurrentIndex] = (Triggering unit)
-
Set Bubble_Level[CurrentIndex] = (Level of Bubble for Bubble_Caster[Integer_A])
-
Set CurrentIndex = (CurrentIndex + 1)
-
Set UnitCasterHealth[CurrentIndex] = (Life of Bubble_Caster[Integer_A])
-
Trigger - Turn on Bubble Loop <gen>
Bubble Loop
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Bubble_Caster[Integer_A] Not equal to No unit
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Bubble_Damage[Integer_A] Greater than (250 + (50 x (Level of Bubble for Bubble_Caster[Integer_A])))
-
-
Then - Actions
-
-------- The If - Conditions above --------
-
-------- Is to make this trigger turn itself off if the caster doesnt have the " Bubble " buff any more. --------
-
-------- Is to make this trigger turn itself off if the caster isn't alive any more. --------
-
-------- Or the damage has exceeded the absorbing capability of the spell. --------
-
-------- This Trigger action turns the " BubbleCheck " off so that it stops doing the actions it has --------
-
Unit - Remove Bubble buff from Bubble_Caster[Integer_A]
-
Set Bubble_Heal[Integer_A] = 0
-
Set Bubble_Damage[Integer_A] = 0
-
Set CurrentIndex = Integer_A
-
Trigger - Run ReturnIndex <gen> (ignoring conditions)
-
-------- Removes the buff you get when you cast the ability. --------
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Bubble_Caster[Integer_A] has buff Bubble ) Equal to True
-
(Life of Bubble_Caster[Integer_A]) Greater than UnitCasterHealth[Integer_A]
-
-
Then - Actions
-
-------- The If - Conditions above --------
-
-------- Is to make sure the Caster still have the " Bubble " buff. --------
-
-------- Is to check if the Caster has more HP then the original HP when the spell was casted. --------
-
-------- Remember the UnitCasterHealth Variable action i set before? --------
-
-------- It saved the Original HP... --------
-
Set Bubble_Heal[Integer_A] = ((Integer((Life of Bubble_Caster[Integer_A]))) - (Integer(UnitCasterHealth[Integer_A])))
-
-------- The Integer variable " Bubble_Heal " is to check how much the Caster got healed. --------
-
-------- Allowing the Caster to receive heals. --------
-
Set UnitCasterHealth[Integer_A] = (UnitCasterHealth[Integer_A] + (Real(Bubble_Heal[Integer_A])))
-
-------- This Real variable is to add the " Bubble_Heal " to the " UnitCasterHealth " . --------
-
-------- Making the original HP numbers grow in size. --------
-
Set Bubble_Heal[Integer_A] = 0
-
-------- This Variable action Nulls the " Bubble_Heal ". --------
-
-------- So the healing wouldn't stack and bug up the spell ;) --------
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Bubble_Caster[Integer_A] has buff Bubble ) Equal to True
-
(Life of Bubble_Caster[Integer_A]) Less than UnitCasterHealth[Integer_A]
-
-
Then - Actions
-
-------- The If - Conditions above --------
-
-------- Is to make sure the Caster still have the " Bubble " buff. --------
-
-------- Is to check if the Caster has less HP then the original HP when the spell was casted. --------
-
Set Bubble_Damage[Integer_A] = (Bubble_Damage[Integer_A] + ((Integer(UnitCasterHealth[Integer_A])) - (Integer((Life of Bubble_Caster[Integer_A])))))
-
-------- The Integer variable " Bubble_Damage " is to count how much the Caster got damaged. --------
-
Unit - Set life of Bubble_Caster[Integer_A] to UnitCasterHealth[Integer_A]
-
-------- This Unit action heals the caster back to original HP --------
-
-------- That is ofcourse if the Caster hasn't gotten healed anything before then. --------
-
-------- Then it would add Original HP + Healing done to Caster since the Spell was cast. --------
-
-------- Heals; Heals from spells and Level ups and simple Health Regeneration --------
-
-------- Basically anything that raises HP --------
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Set BubbleID[Integer_A] = Integer_A
-
Set Bubble_Caster[Integer_A] = No unit
-
-
-
-
Mui NewIndex
-
Events
-
Conditions
-
Actions
-
Set BubbleIndex = (BubbleIndex + 1)
-
Set CurrentIndex = BubbleID[BubbleIndex]
-
-
-
ReturnIndex
-
Events
-
Conditions
-
Actions
-
Set BubbleID[BubbleIndex] = CurrentIndex
-
Set BubbleIndex = (BubbleIndex - 1)
-
-
if anyone got the answer it would be sweet
im kinda new at this and you guys are like awesome with coding
Attachments
Last edited: