Spell Bone Armor

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
GUI
Non-MUI - I really tried, but I found it impossible to refer the right bone dummy, and making it non-stackable.
Lagless


Bone Armor
This spell summons a barrier created from the bones of fallen warriors. The armor revolves around the Necromancer, protecting him against all attacks for 240 damage. Although enchanted, the armor does take damage and will eventually crumble.
bonearmorje4.png

Triggers

Code:
Referr
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set G_2 = (Units in (Entire map))
        Unit Group - Pick every unit in G_2 and do (Actions)
            Loop - Actions
                Trigger - Add to Store <gen> the event (Unit - (Picked unit) Takes damage)
        Custom script:   call DestroyGroup(udg_G_2)
Code:
Refer
    Events
        Unit - A unit enters (Entire map)
    Conditions
    Actions
        Trigger - Add to Store <gen> the event (Unit - (Triggering unit) Takes damage)
Code:
Cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bone Armor 
    Actions
        Set Life = (Life of (Triggering unit))
        Set Damage = 0.00
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                Unit - Kill Bone[(Integer A)]
        Set Bone_Loc = (Position of (Triggering unit))
        Set Caster = (Triggering unit)
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                Set Boolean[(Integer A)] = True
                Set Bone_Loc2 = (Bone_Loc offset by 100.00 towards (120.00 x (Real((Integer A)))) degrees)
                Unit - Create 1 Bone for (Owner of (Triggering unit)) at Bone_Loc2 facing Default building facing degrees
                Set Bone[(Integer A)] = (Last created unit)
                Custom script:   call RemoveLocation(udg_Bone_Loc2)
        Custom script:   call RemoveLocation(udg_Bone_Loc)
Code:
Store
    Events
    Conditions
        (Triggering unit) Equal to Caster
    Actions
        Set Damage = (Damage + (Damage taken))
        For each (Integer B) from 1 to 3, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Boolean[(Integer B)] Equal to True
                        Damage Greater than or equal to ((120.00 x (Real((Level of Bone Armor  for Caster)))) / (Real((Integer B))))
                    Then - Actions
                        Unit - Kill Bone[(Integer B)]
                        Set Boolean[(Integer B)] = False
                    Else - Actions
Code:
Spin
    Events
        Time - Every 0.05 seconds of game time
    Conditions
        Boolean[1] Equal to True
    Actions
        Unit - Set life of Caster to Life
        Set Distance = (Distance + 10.00)
        For each (Integer B) from 1 to 3, do (Actions)
            Loop - Actions
                Set Bone_Loc = (Position of Caster)
                Set Bone_Loc2 = (Bone_Loc offset by 100.00 towards ((120.00 x (Real((Integer B)))) + Distance) degrees)
                Unit - Move Bone[(Integer B)] instantly to Bone_Loc2
                Custom script:   call RemoveLocation(udg_Bone_Loc2)
                Custom script:   call RemoveLocation(udg_Bone_Loc)
 

Attachments

  • Bone Armor.w3x
    21.1 KB · Views: 246

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
i read through the code and saw a big bug: if you would cast the spell with low hp and then go near a fountain the fountain wouldnt heal you

and
pls remove the buff icon from the status bar (and the effect of the roar ability)

otherwise good spell
 
Reaction score
86
To fix that just make an if statement. If Current life is less than Life than set Heros life to Life. If current life is Greater than Life than set Life to Current Heros Life. That way It dynamically increases along with the Hero's life.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
I've updated the spell now. Bump too. By the way, if I make one more d2 spell can I put it in here or do I have to create a new thread about it >.<?
 
D

DsD)Core(

Guest
Nicely done, I might even use this in my map (and give you full credit) once it's working flawless hehe.

As for the multiple spells adding thing, I think your title would have to be [Spellpack] instead then.

Anyway +rep from me for the effort.
 

Jedimindtrixxx

┻━┻ ︵ ¯\(ツ)/¯ ︵ ┻━┻
Reaction score
168
holy crap sexy effect it causes! looks way cooler than the d2 bone armour! is it is it auto-cast ability, or self-activated? might use it for my final boss of my td, will make it that much harder ^^
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top