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

[Trigger] Call RemoveLocation

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
  • Electricity Field
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) |cff6495edElecrtricity Field|r
    • Actions
      • Set SpellUnit[3] = (Triggering unit)
      • Set SpecialEffecPoint[3] = (Target point of ability being cast)
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceBirthMissile.mdl
      • Set SpeicalEffect[3] = (Last created special effect)
      • Unit - Cause SpellUnit[3] to damage circular area after 1.50 seconds of radius 300.00 at SpecialEffecPoint[3], dealing (1.00 + 1.00) damage of attack type Spells and damage type Normal
      • Wait 1.50 seconds
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Custom script: call RemoveLocation (udg_SpecialEffectPoint[3])

The remove location cant be saved... Means its wrong
Fix it plx
 
Level 7
Joined
May 18, 2010
Messages
264
EDIT: Found problem I had Tiping problem Had
SpecialEffecPoint
SpecialEffectPoint ^^ fixed
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
  • Electricity Field
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) |cff6495edElecrtricity Field|r
    • Actions
      • Set SpellUnit[3] = (Triggering unit)
      • Set SpecialEffectPoint[3] = (Target point of ability being cast)
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceBirthMissile.mdl
      • Set SpeicalEffect[3] = (Last created special effect)
      • Unit - Cause SpellUnit[3] to damage circular area after 1.50 seconds of radius 300.00 at SpecialEffecPoint[3], dealing (1.00 + 1.00) damage of attack type Spells and damage type Normal
      • Wait 1.50 seconds
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Custom script: call RemoveLocation (udg_SpecialEffectPoint[3])
@EvilCrizpy Man, you can enter as many spaces as you want, script ignores them. It was just typing mistake.

Remember that your trigger leaks effects right now (although I don't know if you need those effects for further actions).
Use action Special effect - Destroy your)specialEffect for destroying useless effects and free up memory.
 
Level 7
Joined
May 18, 2010
Messages
264
  • Electricity Field
    • Special Effect - Destroy SpeicalEffect[3]

I know i had problem somwhere i think i fixed for shure.
 
  • Electricity Field
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) |cff6495edElecrtricity Field|r
    • Actions
      • Set SpellUnit[3] = (Triggering unit)
      • Set SpecialEffectPoint[3] = (Target point of ability being cast)
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceBirthMissile.mdl
      • Set SpeicalEffect[3] = (Last created special effect)
      • Unit - Cause SpellUnit[3] to damage circular area after 1.50 seconds of radius 300.00 at SpecialEffecPoint[3], dealing (1.00 + 1.00) damage of attack type Spells and damage type Normal
      • Wait 1.50 seconds
      • Special Effect - Create a special effect at SpecialEffecPoint[3] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Custom script: call RemoveLocation (udg_SpecialEffectPoint[3])
@EvilCrizpy Man, you can enter as many spaces as you want, script ignores them. It was just typing mistake.

Remember that your trigger leaks effects right now (although I don't know if you need those effects for further actions).
Use action Special effect - Destroy your)specialEffect for destroying useless effects and free up memory.

Ahh see i didnt know that, learn something new everyday.
Just got into a habit of never typing spaces when i write
custom script codes.
 
Status
Not open for further replies.
Top