• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Spell Request

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
Divine Light


The hero calls divine light from the heavens that heals all allied heroes around the map, and and has a 35% chance to strike heroes dealing damage.

Level 1 - Heals allied heroes hit points by 350, and deals 450 damage to enemy heroes.
Level 2 - Heals allied heroes hit points by 450, and deals 550 damage to enemy heroes.
Level 3 - Heals allied heroes hit points by 550, and deals 650 damage to enemy heroes.

Please and Thank you.

+Rep for some one who can make it.
 
Level 3
Joined
Aug 19, 2009
Messages
27
Does this mean that it hits all enemy heroes also?
And if it does is it like 35% chance to hit all heroes or 35% to hit each individual hero?
 
Level 3
Joined
Aug 19, 2009
Messages
27
Okieeesss tell me if you wanted the casting hero to heal himself when he casts Divine Light or not and I'll change for you :eek:
 

Attachments

  • Blah.w3x
    38.1 KB · Views: 30
Level 6
Joined
Jun 11, 2009
Messages
151
Yes! Yours works the way i want it! <3 once my rep giving thing is done you'll get it, and it's fine i never planned for it to heal him! ^^
 
Level 3
Joined
Aug 19, 2009
Messages
27
Oh he does heal himself in that map, heres the one that he doesnt heal himself when casting Divine Light :O
 

Attachments

  • No Self Heal Divine Light.w3x
    38.2 KB · Views: 41
Level 37
Joined
Mar 6, 2006
Messages
9,240
^That's still a bit unefficient. You pick every unit in the map, and check if they're heroes...twice. And it heals the caster, it shouldn't.

->

  • Divine Light
    • Events
      • Unit - A unit Begins casting an ability // this could be starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divine Light
    • Actions
      • Set temp_unit = (Triggering unit)
      • Set temp_group = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Matching unit) Not equal to temp_unit)))
      • Unit Group - Pick every unit in temp_group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an ally of (Owner of temp_unit)) Equal to True
            • Then - Actions
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit - Set life of (Picked unit) to (((Life of (Picked unit)) + 250.00) + ((Real((Level of (Ability being cast) for temp_unit))) x 100.00))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) belongs to an enemy of (Owner of temp_unit)) Equal to True
                  • (Random integer number between 1 and 100) Less than or equal to 35
                • Then - Actions
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Unit - Cause temp_unit to damage (Picked unit), dealing (350.00 + ((Real((Level of (Ability being cast) for temp_unit))) x 100.00)) damage of attack type Spells and damage type Divine
                • Else - Actions
      • Custom script: call DestroyGroup( udg_temp_group )
 
Status
Not open for further replies.
Top