• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Damage Won't Come In Right Place

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,610
Hey.

I have a minor problem. There's a boss I have been doing, he got one special spell. The effect is okay, but the damage isn't going where I exactly want. It should go where the effect goes: front of him like "half-circle".

I wonder what I did wrong? Can you fix this problem? Trigger and map added to this post. Rep & credits will be added to a project I'm doing.

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing 1 as An exact match
    • Conditions
    • Actions
      • Set TempLoc = (Position of EPIC_BOSS)
      • Set TempReal = 150.00
      • Set TempReal2 = ((Facing of EPIC_BOSS) - 180.00)
      • Set TempGroup2 = (Units owned by Neutral Hostile)
      • Set TempGroup = (Units within 600.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and (((Matching unit) has buff Invulnerable) Equal to False))))
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Set TempReal2 = (TempReal2 + 90.00)
          • Set TempLoc2 = (TempLoc offset by TempReal towards TempReal2 degrees)
          • Special Effect - Create a special effect at TempLoc2 using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLoc2)
      • Set TempReal = 300.00
      • Set TempReal2 = ((Facing of EPIC_BOSS) - 126.00)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set TempReal2 = (TempReal2 + 36.00)
          • Set TempLoc2 = (TempLoc offset by TempReal towards TempReal2 degrees)
          • Special Effect - Create a special effect at TempLoc2 using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLoc2)
      • Set TempReal = 500.00
      • Set TempReal2 = ((Facing of EPIC_BOSS) - 108.00)
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Set TempReal2 = (TempReal2 + 18.00)
          • Set TempLoc2 = (TempLoc offset by TempReal towards TempReal2 degrees)
          • Special Effect - Create a special effect at TempLoc2 using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLoc2)
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempLoc2 = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Cos((TempReal - (Angle from TempLoc to TempLoc2)))) Greater than (Cos(90.00))
            • Then - Actions
              • Unit - Cause EPIC_BOSS to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
            • Else - Actions
          • Unit Group - Remove (Picked unit) from TempGroup
          • Custom script: call RemoveLocation(udg_TempLoc2)
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call DestroyGroup(udg_TempGroup2)
      • Custom script: call RemoveLocation(udg_TempLoc)
 

Attachments

Status
Not open for further replies.
Back
Top