1. 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
  2. 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
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. 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.

(Modified) Lighthing shield

Discussion in 'Triggers & Scripts' started by Etzer, Mar 16, 2010.

  1. Etzer

    Etzer

    Joined:
    Feb 18, 2009
    Messages:
    1,256
    Resources:
    0
    Resources:
    0
    So, i was wondering, is it possible to modify lightning shield so instead of dealing damage to any unit around, it deal 400 damage when somebody hits the unit which have it.

    It can only be cast on self, and upgrades pr. level.
     
  2. kaizar

    kaizar

    Joined:
    Jul 20, 2009
    Messages:
    293
    Resources:
    0
    Resources:
    0
    I think it is possible, I'll work on it since I also need that type of spell in my Map.
     
  3. Etzer

    Etzer

    Joined:
    Feb 18, 2009
    Messages:
    1,256
    Resources:
    0
    Resources:
    0
    OK, please post a message here if you work it out, i couldn't myself.

    I'm not so good with spell triggers.
     
  4. kaizar

    kaizar

    Joined:
    Jul 20, 2009
    Messages:
    293
    Resources:
    0
    Resources:
    0
    Okay here is the spell you requested + I added another type of spell called StoneSkin, for more description about it, read while playing. I hope you like it and if you see any bugs, do report to me, please.
     

    Attached Files:

  5. Pharaoh_

    Pharaoh_

    Joined:
    Nov 6, 2008
    Messages:
    8,127
    Resources:
    11
    Icons:
    3
    Skins:
    1
    Spells:
    6
    Tutorials:
    1
    Resources:
    11
    @kaizar, when you make a damage detection system, the unit that takes damage is referred as "Triggering unit", not "Attacked unit". "Attacked/-ing unit" responds to the "Unit - A unit is attacked" event.

    This is how your trigger should be, up to the needs of Etzer:

    • Lightning Shield Spell
      • Events
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Triggering unit) has buff Lightning Shield (Hero)) Equal to True
          • Then - Actions
            • Set Attacker_Position = (Position of (Damage source))
            • Unit - Cause (Triggering unit) to damage (Damage source) dealing 400.00 damage of attack type Spells and Damage type Normal
            • Special Effect - Create a special effect attached to the origin of (Damage source) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_Attacker_Position)
          • Else - Actions
     
  6. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,030
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    Shouldn't that be:

    • Lightning Shield Spell
      • Events
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Triggering unit) has buff Lightning Shield (Hero)) Equal to True
          • Then - Actions
            • Unit - Cause (Triggering unit) to damage (Damage source) dealing 400.00 damage of attack type Spells and Damage type Normal
            • Special Effect - Create a special effect attached to the origin of (Damage source) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
            • Special Effect - Destroy (Last created special effect)
          • Else - Actions


    That point variable was rather useless?
     
  7. kaizar

    kaizar

    Joined:
    Jul 20, 2009
    Messages:
    293
    Resources:
    0
    Resources:
    0
    Well, Attacked Unit + Damage Source works, I know that Attacking Unit doesn't work. That was what I did first then I found out it should be, Damage Source.
    Secondly, Etzer wants the spell damage to upgrade per level, which I have done, also Etzer can change the Base Damage which is "20" to 400 or whatever he/she wants.
     
  8. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,030
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    Never use this. Use Triggering Unit, instead. Damage source will not work for Unit- A unit is attacked event.
     
  9. kaizar

    kaizar

    Joined:
    Jul 20, 2009
    Messages:
    293
    Resources:
    0
    Resources:
    0
    Bribe, have you even downloaded my map and tested it? I can assure you that you did not. In my map, I am using Attacked Unit and Damage Source and still it works, try and see.
     
  10. Teelo

    Teelo

    Joined:
    Mar 31, 2009
    Messages:
    709
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Why don't you just make a spell based off Thorns?
    Maybe base it off Lightning Shield, but change the buff to Thorns?
     
  11. GregerTheGreat

    GregerTheGreat

    Joined:
    Sep 21, 2008
    Messages:
    42
    Resources:
    0
    Resources:
    0
    Yup, I think this would be the easiest way, instead of creating a whole new trigger for it.
     
  12. Etzer

    Etzer

    Joined:
    Feb 18, 2009
    Messages:
    1,256
    Resources:
    0
    Resources:
    0
    Well it has to take 400 damage when it hits, but only 3 times, then it wears off
     
  13. Teelo

    Teelo

    Joined:
    Mar 31, 2009
    Messages:
    709
    Resources:
    1
    Maps:
    1
    Resources:
    1
    So you want a clone of the lightning shield from world of warcraft. Check the Spell Resources section, someone likely has made one before.
     
  14. Etzer

    Etzer

    Joined:
    Feb 18, 2009
    Messages:
    1,256
    Resources:
    0
    Resources:
    0
    OK. thanks. rep+
     
  15. Teelo

    Teelo

    Joined:
    Mar 31, 2009
    Messages:
    709
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Last edited: Mar 18, 2010