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

[Trigger] Weird bug

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • For each (Integer A) from 1 to 3, do (Actions)
    • Loop - Actions
      • Set Point_Abilities[(Integer A)] = (Point_Abilities[0] offset by ((Real(Integer[7])) x (Real((Integer A)))) towards 0.00 degrees)
      • Special Effect - Create a special effect at Point_Abilities[(Integer A)] using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at Point[(Integer A)], dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 2.00) damage of attack type Normal and damage type Normal
      • Custom script: call RemoveLocation( udg_Point_Abilities[bj_forLoopAIndex] )

This trigger works perfectly, no reason it shouldn't BUT it does 0 damage for some reason.

Anyone spot a problem ? :wsad:
 
Level 3
Joined
Oct 23, 2007
Messages
36
  • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at Point[(Integer A)], dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 2.00) damage of attack type Normal and damage type Normal
Well, just from this snippet, there are two places to look: 1) Point[array#] is either not defined or outside of the map, or 2)you are referencing Triggering unit when it should be a different unit (although from the looks of it, I'm guessing the event is "Unit starts the effect of an ability").

I'm going to guess that Point[array#] is undefined since earlier the variable being defined is Point_Abilities[array#].

If that doesn't fix it, post entire code pls.
 
Status
Not open for further replies.
Top