Juno**
Member
- Reaction score
- 6
Hey guys! I need your help again.. This spell, whenever cast makes the game little bit laggy. this adds up when I cast the spell a few more times making my computer really lag. I don't know if it's a memory leak or something else but It always does that. and If it is in the trigger, I have no idea what it is because for me, there is nothing wrong with it.
I really need your help guys! The lag really bugs me!
Trigger:
- Events - Unit - A unit Starts the effect of an ability
- Conditions - (Ability being cast) Equal to Kaboom!
- Actions
- Set Skills_Kaboom_Point1 = (Position of (Triggering unit))
- Set Skills_Kaboom_Point2 = (Target point of ability being cast)
- Set Skills_Kaboom_Distance = (Distance between Skills_Kaboom_Point1 and Skills_Kaboom_Point2)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Kaboom! for (Triggering unit)) Equal to 1
- Then - Actions
- Set Skills_Kaboom_Damage = (Skills_Kaboom_Distance x 0.10)
- Special Effect - Create a special effect at Skills_Kaboom_Point1 using Abilities\Spells\Human\Flare\FlareCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Create a special effect at Skills_Kaboom_Point2 using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Destructible - Create a Kaboom1 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Special Effect - Destroy (Last created special effect)
- Destructible - Kill (Last created destructible)
- Destructible - Create a Kaboom2 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Destructible - Kill (Last created destructible)
- Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at Skills_Kaboom_Point2, dealing (50.00 + Skills_Kaboom_Damage) damage of attack type Spells and damage type Normal
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Kaboom! for (Triggering unit)) Equal to 2
- Then - Actions
- Set Skills_Kaboom_Damage = (Skills_Kaboom_Distance x 0.15)
- Special Effect - Create a special effect at Skills_Kaboom_Point1 using Abilities\Spells\Human\Flare\FlareCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Create a special effect at Skills_Kaboom_Point2 using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Destructible - Create a Kaboom1 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Special Effect - Destroy (Last created special effect)
- Destructible - Kill (Last created destructible)
- Destructible - Create a Kaboom2 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Destructible - Kill (Last created destructible)
- Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at Skills_Kaboom_Point2, dealing (75.00 + Skills_Kaboom_Damage) damage of attack type Spells and damage type Normal
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Kaboom! for (Triggering unit)) Equal to 3
- Then - Actions
- Set Skills_Kaboom_Damage = (Skills_Kaboom_Distance x 0.20)
- Special Effect - Create a special effect at Skills_Kaboom_Point1 using Abilities\Spells\Human\Flare\FlareCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Create a special effect at Skills_Kaboom_Point2 using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Destructible - Create a Kaboom1 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Special Effect - Destroy (Last created special effect)
- Destructible - Kill (Last created destructible)
- Destructible - Create a Kaboom2 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Destructible - Kill (Last created destructible)
- Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at Skills_Kaboom_Point2, dealing (100.00 + Skills_Kaboom_Damage) damage of attack type Spells and damage type Normal
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Kaboom! for (Triggering unit)) Equal to 4
- Then - Actions
- Set Skills_Kaboom_Damage = (Skills_Kaboom_Distance x 0.25)
- Special Effect - Create a special effect at Skills_Kaboom_Point1 using Abilities\Spells\Human\Flare\FlareCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Create a special effect at Skills_Kaboom_Point2 using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Destructible - Create a Kaboom1 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Special Effect - Destroy (Last created special effect)
- Destructible - Kill (Last created destructible)
- Destructible - Create a Kaboom2 at Skills_Kaboom_Point2 facing (Random angle) with scale 1.50 and variation 0
- Destructible - Kill (Last created destructible)
- Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at Skills_Kaboom_Point2, dealing (125.00 + Skills_Kaboom_Damage) damage of attack type Spells and damage type Normal
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Custom script: call RemoveLocation(udg_Skills_Kaboom_Point1)
- Custom script: call RemoveLocation(udg_Skills_Kaboom_Point2)
I really need your help guys! The lag really bugs me!