• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Broken Trigger

Status
Not open for further replies.
Level 3
Joined
Aug 11, 2007
Messages
36
I have this trigger:
  • Camus Envenom
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Venom Poison
    • Actions
      • Custom script: bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Hero) and do (Actions)
        • Loop - Actions
          • Set L = (Position of (Picked unit))
          • Unit - Create 1 BasicDummy for Neutral Extra at L facing Default building facing degrees
          • Unit - Add Envenom Camus to (Last created unit)
          • Unit - Order (Last created unit) to Human Priest - Heal (Picked unit)
          • Trigger - Add to Remove Dummy <gen> the event (Unit - (Last created unit) Finishes casting an ability)
      • Custom script: call RemoveLocation(udg_L)
Which elicits an error (Expected 'set')
Code:
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'E000'), function Trig_Camus_Envenom_Func002A )

Similar triggers have worked fine in the past, I'm a tad lost.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
It may be the wrong line, but it points you.
Depending on error type it is either the same line or the line above. And in some very rare cases completely wrong.
 
Status
Not open for further replies.
Top