• 🏆 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!

Damage Won't Come In Right Place

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
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

  • Chapter 6 Epic Boss Event.w3x
    23.3 KB · Views: 75
Status
Not open for further replies.
Top