- Joined
- Oct 7, 2014
- Messages
- 2,209
Can anyone please help me fix this trigger? It makes an error Attempt to index a non-array variable
Line 703, 706, 715
Line 703, 706, 715
-
First
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Chaosflare
-
Actions
- Set tmppoint[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
- Set tmppoint3[(Player number of (Owner of (Triggering unit)))] = (Position of (Target unit of ability being cast))
- -------- Edit the following values to change the damage which is dealt --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Chaosflare for (Triggering unit)) Equal to 1
-
Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 55.00 damage of attack type Spells and damage type Normal
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Chaosflare for (Triggering unit)) Equal to 2
-
Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 65.00 damage of attack type Spells and damage type Normal
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Chaosflare for (Triggering unit)) Equal to 3
-
Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 80.00 damage of attack type Spells and damage type Normal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Special Effect - Create a special effect at tmppoint[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Special Effect - Destroy (Last created special effect)
-
For each (Integer A) from 1 to ((Integer((Distance between tmppoint[(Player number of (Owner of (Triggering unit)))] and tmppoint3[(Player number of (Owner of (Triggering unit)))]))) / 100), do (Actions)
-
Loop - Actions
- Set tmppoint2[(Player number of (Owner of (Triggering unit)))] = (tmppoint[(Player number of (Owner of (Triggering unit)))] offset by (x[(Player number of (Owner of (Triggering unit)))] + 100.00) towards (Angle from tmppoint[(Player number of (Owner of (Triggering unit)))] to tmppoint3[(Player number of (Owner of (Triggeri
- Unit - Create 1 firedummy2 for (Owner of (Triggering unit)) at tmppoint2[(Player number of (Owner of (Triggering unit)))] facing tmppoint3[(Player number of (Owner of (Triggering unit)))]
- Custom script: call RemoveLocation(udg_tmppoint2[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
- Set x[(Player number of (Owner of (Triggering unit)))] = (x[(Player number of (Owner of (Triggering unit)))] + 100.00)
- Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Unit - Create 1 firedummy for (Owner of (Triggering unit)) at tmppoint3[(Player number of (Owner of (Triggering unit)))] facing tmppoint3[(Player number of (Owner of (Triggering unit)))]
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Add Shadow Strike to (Last created unit)
- Unit - Set level of Shadow Strike for (Last created unit) to (Level of Hex (Team Killer) for (Triggering unit))
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Target unit of ability being cast)
- Set x[(Player number of (Owner of (Triggering unit)))] = 0.00
- Custom script: call RemoveLocation(udg_tmppoint[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
- Custom script: call RemoveLocation(udg_tmppoint3[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-
Events