• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Requesting a spell

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,602
Hello!

So I'm requesting a simple GUI spell that doesn't need to be MUI(it will be for a boss fight).

The idea is that every 0,5/1/2 second depending of the distance between the boss and a nearby enemy unit enemies will be damaged.

Enemies within 0-200 range are damaged every 0,5 sec.
Enemies within 200-500 range are damaged every 1 sec.
Enemies within 500-1000 range are damaged every 2 sec.

Once again I want it to be GUI and simple so that I can edit it myself. The problem I had when creating the spell was that I didn't know to do the cooldown thing... I mean it would be stupid if the damages stack.

I already started creating the spell you can view it from this post(attachment).

Anyway rep and credits for the one who creates the spell.


Aero
 

Attachments

  • BOSS SPELL.w3x
    19.8 KB · Views: 50
Level 37
Joined
Mar 6, 2006
Messages
9,243
http://www.hiveworkshop.com/forums/pastebin.php?id=t72q9n

  • BOSS SPELL
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Set BossInteger = (BossInteger + 1)
      • Set TempLoc = (Position of BOSS)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • BossInteger Equal to 4
        • Then - Actions
          • Set BossInteger = 0
          • Set TempGroup = (Units within 1000.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of BOSS)) Equal to True)))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • BossInteger Equal to 2
            • Then - Actions
              • Set TempGroup = (Units within 500.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of BOSS)) Equal to True)))
            • Else - Actions
              • Set TempGroup = (Units within 200.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of BOSS)) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempLoc2 = (Position of (Picked unit))
          • Unit - Cause BOSS to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
          • Special Effect - Create a special effect attached to the head of (Picked unit) using Abilities\Spells\Items\AIfb\AIfbSpecialArt.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLoc2)
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: call DestroyGroup(udg_TempGroup)
 
Status
Not open for further replies.
Top