1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Seek unity between the elements in the 22nd Terraining Contest Poll.
    Dismiss Notice
  3. Seize the moment! The 18th Mini Mapping Contest has commenced.
    Dismiss Notice
  4. Gather 'round - the 20th Icon Contest Poll is out.
    Dismiss Notice
  5. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  6. 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.

Static field v0.02

Submitted by DatnessX
This bundle is marked as substandard. It may contain bugs, not perform optimally or otherwise be in violation of the submission rules.
A lighting spell that shock,knockback and damages all units in 500 AOE over caster.
Every unit get random 1.00 - 2.00 real damage every knockback unit.When he is shocked by lighting,he is knockbacking for (distance between caster and the shocked unit - 500).So if the shocked unit is closer to caster,he gets more damage.

>>>Spell can using only one caster yet<<<

>IF YOU WILL USE THIS SPELL PLEASE CREATE CREDITS FOR ME<
>RATE AND COMMENT<

Keywords:
shock, cause, damage, knock, back, knockback, lighting, pole, AOE, static, field,
Contents

Static field (Map)

Reviews
Moderator
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 12:03, 20th Feb 2010 TriggerHappy: You are destroying the group inside knockback while the group is being enumerated. That's a very bad idea, move it outside the group enumeration....
  1. 12th Dec 2015
    IcemanBo: Too long time as NeedsFix. Rejected.

    12:03, 20th Feb 2010
    TriggerHappy:

    You are destroying the group inside knockback while the group is being enumerated. That's a very bad idea, move it outside the group enumeration. Also, temppoint leaks inside knockback because you set it to something else before destroying it.
     
  2. mjllonir

    mjllonir

    Joined:
    May 31, 2009
    Messages:
    432
    Resources:
    3
    Spells:
    3
    Resources:
    3
    The spell couldn't cause errors? Or you can't? Or maybe you mean the spell shouldn't cause any errors ;).

    Please add th triggers in the description and add a little more information please
     
  3. DatnessX

    DatnessX

    Joined:
    Dec 6, 2008
    Messages:
    281
    Resources:
    8
    Maps:
    7
    Spells:
    1
    Resources:
    8
    More informations?
    Thats all what this spell does :D
     
  4. Klingo

    Klingo

    Joined:
    Dec 19, 2009
    Messages:
    246
    Resources:
    5
    Spells:
    5
    Resources:
    5
    Humm put the trigger in the description.
    1. Your spell provide only one level.
    2. Don't let a periodic trigger run all the time.
    3. your spell can target building...
     
  5. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Triggers
    • static field
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
      • Actions
        • Set TempPoint = (Position of (Triggering unit))
        • Set TempGroup = (Units within 200.00 of TempPoint matching (((Triggering unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True))
        • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
        • Special Effect - Destroy (Last created special effect)
        • Custom script: call RemoveLocation(udg_TempPoint)
        • Unit Group - Pick every unit in TempGroup and do (Actions)
          • Loop - Actions
            • Custom script: call DestroyGroup(udg_TempGroup)
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Picked unit) is alive) Equal to True
              • Then - Actions
                • Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 15.00)%
                • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
                • Special Effect - Destroy (Last created special effect)
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Custom value of (Picked unit)) Equal to 0
                  • Then - Actions
                    • Set GameValue = (GameValue + 1)
                    • Unit - Set the custom value of (Picked unit) to GameValue
                  • Else - Actions
                • Set TempValue = (Custom value of (Picked unit))
                • Set kb_bolean[TempValue] = True
                • Set kb_distance[TempValue] = 30.00
                • Set kb_caster[TempValue] = (Triggering unit)
                • Set TempPoint = (Position of (Triggering unit))
                • Set TempPoint2 = (Position of (Picked unit))
                • Set kb_angle[TempValue] = (Angle from TempPoint to TempPoint2)
                • Lightning - Create a Chain Lightning - Primary lightning effect from source TempPoint to target TempPoint2
                • Set kb_lighting[TempValue] = (Last created lightning effect)
                • Custom script: call RemoveLocation(udg_TempPoint)
                • Custom script: call RemoveLocation(udg_TempPoint2)
                • Unit - Turn collision for (Picked unit) Off
              • Else - Actions


    • knockback
      • Events
        • Time - Every 0.03 seconds of game time
      • Conditions
      • Actions
        • Set TempGroup = (Units in (Playable map area))
        • Unit Group - Pick every unit in TempGroup and do (Actions)
          • Loop - Actions
            • Custom script: call DestroyGroup(udg_TempGroup)
            • Set TempValue = (Custom value of (Picked unit))
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • kb_bolean[TempValue] Equal to True
              • Then - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • kb_distance[TempValue] Greater than 0.00
                  • Then - Actions
                    • Set kb_distance[TempValue] = (kb_distance[TempValue] - 1.00)
                    • Set TempPoint = (Position of (Picked unit))
                    • Set TempPoint2 = (TempPoint offset by kb_distance[TempValue] towards kb_angle[TempValue] degrees)
                    • Unit - Move (Picked unit) instantly to TempPoint2
                    • Custom script: call RemoveLocation(udg_TempPoint)
                    • Custom script: call RemoveLocation(udg_TempPoint2)
                    • Set TempPoint = (Position of kb_caster[TempValue])
                    • Set TempPoint2 = (Position of (Picked unit))
                    • Lightning - Move kb_lighting[TempValue] to source TempPoint and target TempPoint2
                    • Custom script: call RemoveLocation(udg_TempPoint)
                    • Custom script: call RemoveLocation(udg_TempPoint2)
                  • Else - Actions
                    • Set kb_bolean[TempValue] = False
                    • Unit - Turn collision for (Picked unit) On
                    • Lightning - Destroy kb_lighting[TempValue]
              • Else - Actions


    1) You should have this as a condition in the cast trigger:
    • (Ability being cast) Equal to Static field


    2) This should be at the endo of the first trigger, not inside the loop:
    • Custom script: call DestroyGroup(udg_TempGroup)


    3) Don't use custom value of unit. It can interfere with other spells/systems. IMO, just about any resource that uses custom value of unit shouldn't be approved.

    4) You need to trun on/off the knockback trigger when it's needed/not needed. Turn it on when the ability is cast (checking wheter it is on or not) and turn it off when there are no units to be knocked back.

    5) Create a static group for the knockback, do not pick every unit in the map every 0,03 seconds. That's bad.

    6) IMO, spells that are not v1.0 or higher should not be uploaded. Only upload finished spells. If you need feedback, post the spell in Triggers and Scipts section, or you can ask some forum member to take a look at your spell over a PM.

    7) The spell is not easily customizeable and the documentation could be a bit better.

    8) The idea is not that original, just a knockback with percentage of life damage.

    9) In the knockbac trigger, you set position of picked unit to a variable twice. Make it so that it's only set once.

    10) The spell is not MUI.

    On a positive note, I didn't spot any leaks and the spell works as intended.

    However at it's current state I can only rate it 0/5 and vote for rejection. Fix these issues and you'll get higher rating.
     
  6. Demongrip

    Demongrip

    Joined:
    Sep 8, 2009
    Messages:
    80
    Resources:
    6
    Spells:
    6
    Resources:
    6
    Well maker said it all just to add
    If there is no ability being cast condition this spell will trigger when any spell is cast.Also the group script should be below the unit group not inside it
     
  7. DatnessX

    DatnessX

    Joined:
    Dec 6, 2008
    Messages:
    281
    Resources:
    8
    Maps:
    7
    Spells:
    1
    Resources:
    8
    I don't want to change my spell system, but I'll must do it,because it doesn't work properly, but i don't know how...
     
  8. redscores

    redscores

    Joined:
    Aug 9, 2006
    Messages:
    2,161
    Resources:
    12
    Maps:
    5
    Spells:
    6
    Template:
    1
    Resources:
    12
    Please, dude, judging from this spell "your spell system" is NOT good at all, please, before you upload spells, read some tutorials, or just trial and error around, and compare them to GUI spells currently uploaded on this site, so you can see what you do wrong. Check my signature (the resources stuff) for a few informations.
     
  9. WizardYu

    WizardYu

    Joined:
    Oct 2, 2011
    Messages:
    3
    Resources:
    0
    Resources:
    0
    You should stop being strict, as we all know his spell isnt good but you should encourage him to do better and help him not being mean. Because if your putting down on him, he will just give up... -_- so maby you should tell him the leaks and help him step by step without being strict? its just a idea.
     
  10. Klingo

    Klingo

    Joined:
    Dec 19, 2009
    Messages:
    246
    Resources:
    5
    Spells:
    5
    Resources:
    5
    I'm against this... seriously, this sections has rules and it clearly says all spells must be MUI and leakless so... yeah, plus, maybe you havn't go once on the forum or tutorial but, it has alot of tutorial how to remove leaks and how to acheive MUI so yeah, it's not like spell's maker were hiding their way to make good spells. If they actually read, things like this would not happen