Carrion Swarm question

Nethrezim

New Member
Reaction score
2
I know that Carrion Swarm places an irreplaceable black smoke on targets. I was wondering if I could trigger another effect to attach to the chest or origin of the targets of the spell.

Any ideas?:)
 

mylemonblue

You can change this now in User CP.
Reaction score
7
Replace Carrion Swarm's default buff with a custom one, and tell it to place the 'Target Attatchments" to whatever you want. eg, Head, chest, mount, origin, etc/... :)
 

Nethrezim

New Member
Reaction score
2
Tried that and didn't work... did you try it and worked? Maybe I'm doing something wrong
 

mylemonblue

You can change this now in User CP.
Reaction score
7
Ahh sorry, I was thinking of something entirely different... My bad :eek:

The field you want to change is Art - Special. However, that I believe will place it at the center of the unit. Below the Art-Special field is Special Attatchment Point. Try changing that to something like Overhead so you can see if it works or not :)
 

Nethrezim

New Member
Reaction score
2
Doesn't work either. I've managed to trigger the effect somehow, but it leaks.

Trigger:
  • Electrokinesis
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Electrokinesis
    • Actions
      • Special Effect - Create a special effect attached to the chest of Caster using Abilities\Weapons\Bolt\BoltImpact.mdl
      • Set ElectroCaster = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand,left of Caster using Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
      • Set ElectroCaster2 = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand,left of Caster using Abilities\Weapons\Bolt\BoltImpact.mdl
      • Set ElectroCaster3 = (Last created special effect)
      • Hashtable - Create a hashtable
      • Set ElectroTable = (Last created hashtable)
      • Set Caster = (Triggering unit)
      • Set CasLoc = (Position of (Triggering unit))
      • Set Sptarget = (Target point of ability being cast)
      • Set Real = ((Facing of Caster) - 90.00)
      • Set CasDist = (Distance between CasLoc and Sptarget)
      • Set CasAng = (Angle from CasLoc to Sptarget)
      • Set ElectroTableVar = 0
      • Set ElectroAoE = (CasLoc offset by (CasDist / 2.00) towards CasAng degrees)
      • Unit - Create 1 Dummy for (Owner of Caster) at CasLoc facing Default building facing degrees
      • Unit - Turn collision for (Last created unit) Off
      • Unit - Add Electrokinesis Dummy to (Last created unit)
      • Unit - Set level of Electrokinesis Dummy for (Last created unit) to (Level of Electrokinesis for Caster)
      • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm Sptarget
      • Unit - Add a 3.50 second Generic expiration timer to (Last created unit)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within (CasDist / 2.00) of ElectroAoE matching (((((Matching unit) is A structure) Not equal to True) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)) and (((Matching unit) is Magic Immune) Not equal to True))) and do (Actions)
        • Loop - Actions
          • Set ElectroPicked = (Position of (Picked unit))
          • Special Effect - Create a special effect at ElectroPicked using Abilities\Weapons\Bolt\BoltImpact.mdl
          • Set ElectroEffect = (Last created special effect)
          • Special Effect - Destroy ElectroEffect
          • Custom script: call RemoveLocation(udg_ElectroPicked)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set LocOffset = (CasLoc offset by 200.00 towards Real degrees)
          • Set AngOffset = (LocOffset offset by CasDist towards CasAng degrees)
          • Lightning - Create a Chain Lightning - Primary lightning effect from source CasLoc to target LocOffset
          • Hashtable - Save Handle Of(Last created lightning effect) as (ElectroTableVar + 1) of 1 in ElectroTable
          • Lightning - Create a Chain Lightning - Secondary lightning effect from source LocOffset to target AngOffset
          • Hashtable - Save Handle Of(Last created lightning effect) as (ElectroTableVar + 1) of 2 in ElectroTable
          • Set Real = (Real + (180.00 / 5.00))
          • Set ElectroTableVar = (ElectroTableVar + 1)
      • Custom script: call RemoveLocation(udg_CasLoc)
      • Custom script: call RemoveLocation(udg_Sptarget)
      • Custom script: call RemoveLocation(udg_ElectroAoE)
      • Wait 0.75 seconds
      • Special Effect - Destroy ElectroCaster
      • Special Effect - Destroy ElectroCaster2
      • Special Effect - Destroy ElectroCaster3
      • Lightning - Destroy (Load 1 of 1 in ElectroTable)
      • Lightning - Destroy (Load 1 of 2 in ElectroTable)
      • Lightning - Destroy (Load 2 of 1 in ElectroTable)
      • Lightning - Destroy (Load 2 of 2 in ElectroTable)
      • Lightning - Destroy (Load 3 of 1 in ElectroTable)
      • Lightning - Destroy (Load 3 of 2 in ElectroTable)
      • Lightning - Destroy (Load 4 of 1 in ElectroTable)
      • Lightning - Destroy (Load 4 of 2 in ElectroTable)
      • Lightning - Destroy (Load 5 of 1 in ElectroTable)
      • Lightning - Destroy (Load 5 of 2 in ElectroTable)
      • Lightning - Destroy (Load 6 of 1 in ElectroTable)
      • Lightning - Destroy (Load 6 of 2 in ElectroTable)
      • Hashtable - Clear all child hashtables of child ElectroTableVar in ElectroTable


And here's how it leaks, after the picked units are dead.
 

mylemonblue

You can change this now in User CP.
Reaction score
7
It doesn't look like you nulled the variables you used =/
Unit variables could be removed by setting the variable to No Unit after it is done being used, or like this:
Trigger:
  • <b>Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Custom script: set udg_Caster = null
    • </b>
 

Nethrezim

New Member
Reaction score
2
Yes but the leak doesn't have anything to do with my only unit variable: Caster. It must be something in the unit group loop.
 

Nethrezim

New Member
Reaction score
2
Still doesn't work.

Trigger:
  • Set ElectroGroup = (Units within (CasDist / 2.00) of ElectroAoE matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True))))
    • Unit Group - Pick every unit in ElectroGroup and do (Actions)
      • Loop - Actions
        • Set ElectroPicked = (Position of (Picked unit))
        • Special Effect - Create a special effect at ElectroPicked using Abilities\Weapons\Bolt\BoltImpact.mdl
        • Special Effect - Destroy (Last created special effect)
        • Custom script: call RemoveLocation(udg_ElectroPicked)
    • Custom script: call DestroyGroup (udg_ElectroGroup)


:(:(
 

Slayer4000X2008

That guy from Canada
Reaction score
23
I know that Carrion Swarm places an irreplaceable black smoke on targets. I was wondering if I could trigger another effect to attach to the chest or origin of the targets of the spell.

Any ideas?:)

If memory serves you can edit the attachment in the ability editor, not in the buff/effect editor. I know this works with some abilities but not all of them.
 

Nethrezim

New Member
Reaction score
2
Yup, changing the art in the original Carrion Swarm spell did the trick. Thanks and +rep:D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top