• 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.

[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