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

Error expected set??

Status
Not open for further replies.
Level 2
Joined
Nov 2, 2005
Messages
21
Ok so I started fixing leaks in one of my spells...run Leak Check, says there are no leaks.

So I go to save it, and BAM an error window pops up saying Line # Expected 'set' and it highlights a line.

This is the trigger I did
  • Geno Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Geno Blast
    • Actions
      • Set Channeling[(Player number of (Owner of (Casting unit)))] = True
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 0.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 60.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 120.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 180.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 240.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Beam for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 450.00 towards 300.00 degrees) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Unit - Create 1 Lunar Ray for (Owner of (Casting unit)) at (Target point of ability being cast) facing (Target point of ability being cast)
      • Animation - Play (Last created unit)'s birth animation
      • Wait 2.60 seconds
      • If (Channeling[(Player number of (Owner of (Casting unit)))] Equal to False) then do (Skip remaining actions) else do (Do nothing)
      • Custom script: bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Lunar Beam) and do (Animation - Reset (Picked unit)'s animation)
      • Custom script: bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Lunar Ray) and do (Animation - Reset (Picked unit)'s animation)
      • Wait 1.00 seconds
      • If (Channeling[(Player number of (Owner of (Casting unit)))] Equal to False) then do (Skip remaining actions) else do (Do nothing)
      • Custom script: bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Lunar Beam) and do (Unit - Order (Picked unit) to Move To (Target point of ability being cast))
      • Wait 3.00 seconds
      • If (Channeling[(Player number of (Owner of (Casting unit)))] Equal to False) then do (Skip remaining actions) else do (Do nothing)
      • Cinematic - Fade out over 0.30 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • For each (Integer A) from 1 to 12, do (Special Effect - Create a special effect at (Random point in (Region centered at (Target point of ability being cast) with size (600.00, 600.00))) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl)
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.30 seconds
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Lunar Beam) and do (Unit - Kill (Picked unit))
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Lunar Ray) and do (Unit - Kill (Picked unit))
      • Unit Group - Pick every unit in (Units within 600.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Normal and damage type Normal)
      • Cinematic - Fade in over 1.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
The error seems to be when I put the bj_wantDestroyGroup = true into it. The line after that is the line that it has an error. All I did for the custom scipt was type, bj_wantDestroyGroup = true into the little box. Did I do something wrong with it? Anybody know what is going on?

EDIT-BTW I put the bj_wantDestroyGroup = true in there because that is what the Leak check suggested to do. I really have no idea what I am doing when it comes to triggers
 
Status
Not open for further replies.
Top