• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Assassins Aid v. 1.1

Hello THW. This spell is made for you to use. Hopes you like it.

BloodRazor Studios Presents, a tjordell´s project;
This spell will be in the New-Age AOS; Battle for Honor, LINK

[IMG]http://www.hiveworkshop.com/forums/pastebin_data/z63k1z/Assassins%20Aid%20Button.jpg[/IMG]
Each time a nearby enemy unit dies, the Assasin uses it's corpse to heal every nearby allied unit. The health is split depended on how many allied units nearby.
Level 1 - 5% of max health is split.
Level 2 - 8% of max health is split.
Level 3 - 11% of max health is split
Level 4 - 14% of max health is split.
Area of Effect: 700

  • AA Preload
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Set AA_Percent[(Integer A)] = (5.00 + (3.00 x (Real((Integer A)))))
  • AA Effect
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set AA_Loc[1] = (Position of (Triggering unit))
      • Set AA_Cstr_Group = (Units within 700.00 of AA_Loc[1] matching (((Level of Assassins Aid for (Matching unit)) Greater than 0) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in AA_Cstr_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (AA_Cstr_Group is empty) Equal to False
            • Then - Actions
              • Set AA_E_HP = (Max life of (Triggering unit))
              • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Set AA_Loc[2] = (Position of (Picked unit))
              • Set AA_A_Group = (Units within 700.00 of AA_Loc[2] matching ((((Matching unit) belongs to an ally of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
              • Set AA_HPcount = ((AA_E_HP / AA_Percent[(Level of Assassins Aid for (Picked unit))]) / (Real((Number of units in AA_A_Group))))
              • Unit Group - Pick every unit in AA_A_Group and do (Actions)
                • Loop - Actions
                  • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + AA_HPcount)
                  • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
                  • Special Effect - Destroy (Last created special effect)
              • Custom script: call RemoveLocation (udg_AA_Loc[2])
              • Custom script: call DestroyGroup (udg_AA_A_Group)
            • Else - Actions
      • Custom script: call RemoveLocation (udg_AA_Loc[1])
      • Custom script: call DestroyGroup (udg_AA_Cstr_Group)
[v. 1.1] - Fixed some leaks. Long time no work on this xD...
[v. 1.0] - Created and Uploaded!


Keywords:
Assassin, aid, tjordell, BloodRazor Studios, First aid, revive, resurrect, regain hp, regenerate
Contents

Assassins Aid (Map)

Reviews
00:28, 17th Jun 2010 Hanky: Looks okay now. Approved!

Moderator

M

Moderator

00:28, 17th Jun 2010
Hanky:
Looks okay now. Approved!
 
Level 10
Joined
May 27, 2009
Messages
494
@GodLike

it is better to use variables than Integer A because when other triggers uses Integer A, it may cause conflicts between triggers in which integer are they now. Integer A is a global (for me :D )

and yes, it leaks, at the declaration of UnitGroup variables you have there.
Position of Triggering Unit leaks... fix that

overall.. still nice spell
 
This is even more plain than the previous spell. I'm afraid it will receive a rating of Lacking. It's not the coding itself, it's just it's a really generic effect. A trigger with 10 lines is not approvable for sure. Your spell shares an effect other spells have in their 100th line; this is why this is considered too simple. Enhance the effects to receive some chance for it.
 
Level 11
Joined
Jan 25, 2009
Messages
572
Well i was pretty noobish back there and the only thing i wanted was to get famous with my spells but i still like the idea of splitting a percentage life of a victim in an aoe. The splitting this is the one that i loves with this spells. The SFX suxxx i know... I will meaby rework mych of this =)
 
Level 5
Joined
Nov 14, 2009
Messages
191
I must say this spell is pretty good as there are not many passive spells here and the idea is still ok, but I would like to see more complicated spell next time.
Keep up the good work! +rep
 
Level 9
Joined
Dec 16, 2017
Messages
339
How can the percent be manipulated? If you want a higher heal, you need to lower the percent of heal from the first trigger, and it doesn't make sense to me, wouldn't it normally be needed to increase the percent if you want a higher heal? Or the heal is % max hp of the healed unit and not the dead unit?
 
Top