1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  5. Dismiss Notice
  6. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Destructive Lightning

Submitted by cyberkid
This bundle is marked as approved. It works and satisfies the submission rules.
--Destructive Lightning--
The hero creates electric sphere in target point. The sphere increases energy in a current of 1 second then throws out a powerful electric charge on all enemies around. In each enemy on distance of 600 points will be hited by Chain Lightning, that bounces on a random enemy unit within 300 point up to 10 times. Damage icreases per bounce.
Level 1 - 30 initial damage, +10% damage per bounce.
Level 2 - 50 initial damage, +20% damage per bounce.
Level 3 - 70 initial damage, +30% damage per bounce.
Destructive Lightning A
  • Destructive Lightning A
    • События
      • Боевая единица - A unit РџСЂРёРІРѕРґРёС‚ способность РІ действие
    • Условия
      • (Ability being cast) равно Destructive Lightning
    • Действия
      • -------- If DL_Switch = 0, it means ability is not used, we must turn on trigger B --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Если - Условия
          • DL_Switch равно 0
        • РўРѕ - Действия
          • Триггер - Turn on Destructive Lightning B <gen>
        • Р&#152;наче - Действия
      • -------- Increasing DL_Switch, displays that ability is used --------
      • Set DL_Switch = (DL_Switch + 1)
      • -------- Increasing DL_CastNumber, it means one more unit become using ability --------
      • Set DL_CastNumber = (DL_CastNumber + 1)
      • -------- Displays - used ability or not --------
      • Set DL_Off[DL_CastNumber] = Да
      • -------- This must be 0.00 for correct working of trigger B --------
      • Set DL_Time[DL_CastNumber] = 0.00
      • -------- Let's establish caster and target point --------
      • Set DL_Caster[DL_CastNumber] = (Casting unit)
      • Set DL_Point[0] = (Target point of ability being cast)
      • -------- Creating Effect --------
      • Боевая единица - Create 1 Effect: Lighting Orb for (Owner of DL_Caster[DL_CastNumber]) at DL_Point[0] facing Стандартная ориентация зданий degrees
      • Set DL_Orb[DL_CastNumber] = (Last created unit)
      • -------- Removing location to avoid leaks --------
      • Custom script: call RemoveLocation (udg_DL_Point[0])

Destructive Lightning B
  • Destructive Lightning B
    • События
      • Время - Every 0.02 seconds of game time
    • Условия
    • Действия
      • -------- We use variable DL instead of Integer A --------
      • For each (Integer DL) from 1 to DL_CastNumber, do (Actions)
        • Цикл - Действия
          • -------- If DL_Off = True, then runs following actions --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Если - Условия
              • DL_Off[DL] равно Да
            • РўРѕ - Действия
              • -------- We adding 0.02 to DL_Time because trigger runs every 0.02 seconds --------
              • Set DL_Time[DL] = (DL_Time[DL] + 0.02)
              • -------- Increasing Effect's size for more visual effects --------
              • Анимация - Change DL_Orb[DL]'s size to ((100.00 + (500.00 x DL_Time[DL]))%, (100.00 + (500.00 x DL_Time[DL]))%, (100.00 + (500.00 x DL_Time[DL]))%) of its original size
              • -------- If DL_Time = 1.00, it mean 1 second expired from cast moment --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Если - Условия
                  • DL_Time[DL] больше или равно 1.00
                • РўРѕ - Действия
                  • -------- Let's establish position of Effect --------
                  • Set DL_Point[1] = (Position of DL_Orb[DL])
                  • -------- Let's establish our enemies --------
                  • Set DL_Group[0] = (Units within 600.00 of DL_Point[1] matching ((((((Matching unit) is Здание) равно Нет) and (((Matching unit) is Невосприимчивость Рє магии) равно Нет)) and (((Matching unit) is dead) равно Нет)) and (((Matc
                  • Отряд - Pick every unit in DL_Group[0] and do (Actions)
                    • Цикл - Действия
                      • -------- Let's store our enemies in variable --------
                      • Set DL_Targets[DL] = (Picked unit)
                      • -------- Let's establish their position --------
                      • Set DL_Point[2] = (Position of DL_Targets[DL])
                      • -------- Let's create another effect for each enemy at their position --------
                      • Боевая единица - Create 1 Effect: Lighting Caster for (Owner of DL_Caster[DL]) at DL_Point[2] facing Стандартная ориентация зданий degrees
                      • -------- storing position of Effect2 in variable --------
                      • Set DL_Point[3] = (Position of (Last created unit))
                      • -------- Adding Chain Lightning ability to Effect2 --------
                      • Боевая единица - Add Chain Lightning DUMMIE to (Last created unit)
                      • Боевая единица - Set level of Chain Lightning DUMMIE for (Last created unit) to (Level of Destructive Lightning for DL_Caster[DL])
                      • -------- Let's establish single enemy within position of each Effect2 --------
                      • Set DL_Group[1] = (Units within 200.00 of DL_Point[3] matching ((((((Matching unit) is Здание) равно Нет) and (((Matching unit) is Невосприимчивость Рє магии) равно Нет)) and (((Matching unit) is dead) равно Нет)) and (((Matc
                      • Set DL_TargetSingle[DL] = (Random unit from DL_Group[1])
                      • -------- Moving Effect2 to position of Effect (lightning orb) --------
                      • Боевая единица - Move (Last created unit) instantly to DL_Point[1]
                      • -------- Issues ecah Effect2 to cast chain lightning in it's single target --------
                      • Боевая единица - Order (Last created unit) to Говорящий СЃ Духами (РћСЂРґР°) - Цепь молний DL_TargetSingle[DL]
                      • Боевая единица - Add a 1.00 second Общий expiration timer to (Last created unit)
                      • -------- get rid from locations and group to avoid leaks --------
                      • Custom script: call RemoveLocation (udg_DL_Point[2])
                      • Custom script: call RemoveLocation (udg_DL_Point[3])
                      • Custom script: call DestroyGroup (udg_DL_Group[1])
                  • -------- get rid from Effect --------
                  • Боевая единица - Add a 0.40 second Общий expiration timer to DL_Orb[DL]
                  • Анимация - Change DL_Orb[DL]'s animation speed to 30.00% of its original speed
                  • -------- Let's establish DL_Off = False, it means unit finished ability --------
                  • Set DL_Off[DL] = Нет
                  • -------- Let's reduce DL_Switch on 1, it means that 1 unit less using ability --------
                  • Set DL_Switch = (DL_Switch - 1)
                  • -------- If DL_Switch = 0 it means no units are using ability, we can reset indexes and turn off trigger B --------
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • Если - Условия
                      • DL_Switch равно 0
                    • РўРѕ - Действия
                      • Set DL_CastNumber = 0
                      • Триггер - Turn off (This trigger)
                    • Р&#152;наче - Действия
                  • -------- removing location ang group to avoid leak --------
                  • Custom script: call RemoveLocation (udg_DL_Point[1])
                  • Custom script: call DestroyGroup (udg_DL_Group[0])
                • Р&#152;наче - Действия
            • Р&#152;наче - Действия


MUI, Works, Leakless.

Keywords:
Destruction, Lightning, Chain Lightning
Contents

Light (Map)

Reviews
Moderator
09:35, 10th Mar 2010 The_Reborn_Devil: The triggering looks ok and there were no leaks. Status: Approved Rating: Useful
  1. 09:35, 10th Mar 2010
    The_Reborn_Devil:
    The triggering looks ok and there were no leaks.


    Status: Approved
    Rating: Useful
     
  2. Catch_ya

    Catch_ya

    Joined:
    May 21, 2009
    Messages:
    982
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Here is english triggers.
    • Destructive Lightning A
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Ability being cast) Equal to Destructive Lightning
      • Actions
        • -------- If DL_Switch = 0, it means ability is not used, we must turn on trigger B --------
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • DL_Switch Equal to 0
          • Then - Actions
            • Trigger - Turn on Destructive Lightning B <gen>
          • Else - Actions
        • -------- Increasing DL_Switch, displays that ability is used --------
        • Set DL_Switch = (DL_Switch + 1)
        • -------- Increasing DL_CastNumber, it means one more unit become using ability --------
        • Set DL_CastNumber = (DL_CastNumber + 1)
        • -------- Displays - used ability or not --------
        • Set DL_Off[DL_CastNumber] = True
        • -------- This must be 0.00 for correct working of trigger B --------
        • Set DL_Time[DL_CastNumber] = 0.00
        • -------- Let's establish caster and target point --------
        • Set DL_Caster[DL_CastNumber] = (Casting unit)
        • Set DL_Point[0] = (Target point of ability being cast)
        • -------- Creating Effect --------
        • Unit - Create 1 Effect: Lighting Orb for (Owner of DL_Caster[DL_CastNumber]) at DL_Point[0] facing Default building facing degrees
        • Set DL_Orb[DL_CastNumber] = (Last created unit)
        • -------- Removing location to avoid leaks --------
        • Custom script: call RemoveLocation (udg_DL_Point[0])


    • Destructive Lightning B
      • Events
        • Time - Every 0.02 seconds of game time
      • Conditions
      • Actions
        • -------- We use variable DL instead of Integer A --------
        • For each (Integer DL) from 1 to DL_CastNumber, do (Actions)
          • Loop - Actions
            • -------- If DL_Off = True, then runs following actions --------
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • DL_Off[DL] Equal to True
              • Then - Actions
                • -------- We adding 0.02 to DL_Time because trigger runs every 0.02 seconds --------
                • Set DL_Time[DL] = (DL_Time[DL] + 0.02)
                • -------- Increasing Effect's size for more visual effects --------
                • Animation - Change DL_Orb[DL]'s size to ((100.00 + (500.00 x DL_Time[DL]))%, (100.00 + (500.00 x DL_Time[DL]))%, (100.00 + (500.00 x DL_Time[DL]))%) of its original size
                • -------- If DL_Time = 1.00, it mean 1 second expired from cast moment --------
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • DL_Time[DL] Greater than or equal to 1.00
                  • Then - Actions
                    • -------- Let's establish position of Effect --------
                    • Set DL_Point[1] = (Position of DL_Orb[DL])
                    • -------- Let's establish our enemies --------
                    • Set DL_Group = (Units within 600.00 of DL_Point[1] matching ((((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and (((Matching unit) is dead) Equal to False)) and (((Matching unit) belongs to an enemy of (Owner of DL
                    • Unit Group - Pick every unit in DL_Group and do (Actions)
                      • Loop - Actions
                        • -------- Let's store our enemies in variable --------
                        • Set DL_Targets[DL] = (Picked unit)
                        • -------- Let's establish their position --------
                        • Set DL_Point[2] = (Position of DL_Targets[DL])
                        • -------- Let's create another effect for each enemy at their position --------
                        • Unit - Create 1 Effect: Lighting Caster for (Owner of DL_Caster[DL]) at DL_Point[2] facing Default building facing degrees
                        • -------- storing position of Effect2 in variable --------
                        • Set DL_Point[3] = (Position of (Last created unit))
                        • -------- Adding Chain Lightning ability to Effect2 --------
                        • Unit - Add Chain Lightning DUMMIE to (Last created unit)
                        • Unit - Set level of Chain Lightning DUMMIE for (Last created unit) to (Level of Destructive Lightning for DL_Caster[DL])
                        • -------- Let's establish single enemy within position of each Effect2 --------
                        • Set DL_TargetSingle[DL] = (Random unit from (Units within 200.00 of DL_Point[3] matching ((((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and (((Matching unit) is dead) Equal to False)) and (((Matching unit) belongs to an ene
                        • -------- Moving Effect2 to position of Effect (lightning orb) --------
                        • Unit - Move (Last created unit) instantly to DL_Point[1]
                        • -------- Issues ecah Effect2 to cast chain lightning in it's single target --------
                        • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning DL_TargetSingle[DL]
                        • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                        • -------- get rid from locations and group to avoid leaks --------
                        • Custom script: call RemoveLocation (udg_DL_Point[2])
                        • Custom script: call RemoveLocation (udg_DL_Point[3])
                        • Custom script: call DestroyGroup (udg_DL_Group)
                    • -------- get rid from Effect --------
                    • Unit - Add a 0.40 second Generic expiration timer to DL_Orb[DL]
                    • Animation - Change DL_Orb[DL]'s animation speed to 30.00% of its original speed
                    • -------- Let's establish DL_Off = False, it means unit finished ability --------
                    • Set DL_Off[DL] = False
                    • -------- Let's reduce DL_Switch on 1, it means that 1 unit less using ability --------
                    • Set DL_Switch = (DL_Switch - 1)
                    • -------- If DL_Switch = 0 it means no units are using ability, we can reset indexes and turn off trigger B --------
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • DL_Switch Equal to 0
                      • Then - Actions
                        • Set DL_CastNumber = 0
                        • Trigger - Turn off (This trigger)
                      • Else - Actions
                    • -------- removing location to avoid leak --------
                    • Custom script: call RemoveLocation (udg_DL_Point[1])
                  • Else - Actions
              • Else - Actions
     
  3. Noobsmoke

    Noobsmoke

    Joined:
    Nov 20, 2007
    Messages:
    631
    Resources:
    1
    Spells:
    1
    Resources:
    1
    a small problem with grammar :wink:, but the spell has good effects,good triggering and no leaks - 4/5 :wink: :fp: vote for approve
     

    Attached Files:

    • bug.JPG
      bug.JPG
      File size:
      140 KB
      Views:
      430
  4. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    • Set DL_TargetSingle[DL] = (Random unit from (Units within 200.00 of DL_Point[3] matching ((((((Matching unit) is A structure) Equal to False)...

    ^Leaks a unit group.

    • Custom script: call DestroyGroup (udg_DL_Group)

    ^Should not be inside the loop.
     
  5. powerloll

    powerloll

    Joined:
    Apr 28, 2009
    Messages:
    44
    Resources:
    0
    Resources:
    0
    mmmm, still on a rampaging?? :p
    i like this spell more than the other spells
    it looks leakless to me...

    @maker

    why: leaks a unit group??
     
  6. krisserz

    krisserz

    Joined:
    Feb 28, 2009
    Messages:
    1,945
    Resources:
    2
    Spells:
    2
    Resources:
    2
    (Random unit from (Units within 200.00 of DL_Point[3] matching ((((((Matching unit) is A structure) Equal to False)...
     
  7. Zanekok

    Zanekok

    Joined:
    Jan 19, 2010
    Messages:
    374
    Resources:
    8
    Icons:
    5
    Spells:
    3
    Resources:
    8
    Hmm...Looking very good. Effect is very nice, spell is original, MUI and can be useful 4/5
     
  8. cyberkid

    cyberkid

    Joined:
    Jul 9, 2008
    Messages:
    45
    Resources:
    10
    Spells:
    10
    Resources:
    10
    updated, leaks removed
     
  9. Freyleyes

    Freyleyes

    Joined:
    Jun 28, 2008
    Messages:
    766
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Looks cool, will test now.
     
  10. War_Golum

    War_Golum

    Joined:
    Jan 12, 2010
    Messages:
    756
    Resources:
    7
    Models:
    3
    Icons:
    4
    Resources:
    7
    I think the graphics greatly exaggerated
     
  11. Cihparg

    Cihparg

    Joined:
    Jul 4, 2008
    Messages:
    958
    Resources:
    1
    Models:
    1
    Resources:
    1
    I dislike the effects.
    It's too shiny. Please, if you use that model, don't enlarge it so much.
     
  12. cyberkid

    cyberkid

    Joined:
    Jul 9, 2008
    Messages:
    45
    Resources:
    10
    Spells:
    10
    Resources:
    10
    I think, that spells with a lightning should be more lightly, if you so do not consider, can freely choose effects which like you