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

[Trigger] My spell doesnt work for multiple units

Status
Not open for further replies.
Level 6
Joined
Jul 26, 2010
Messages
167
  • CertainDeath start Copiar
    • Acontecimientos
      • Unidad - A unit Inicia el efecto de una habilidad
    • Condiciones
      • (Ability being cast) Igual a Certain death
    • Acciones
      • Set casterCD = (Triggering unit)
      • Set ContCD[1] = 0
      • Set ContCD[2] = 0
      • Set DistanciaCD = 120
      • Set TempPointCD[1] = (Position of casterCD)
      • Set TempPointCD[2] = (Target point of ability being cast)
      • Set AnguloCD = (Angle from TempPointCD[1] to TempPointCD[2])
      • Detonador - Turn on CertainDeath loop Copiar <gen>
  • CertainDeath loop Copiar
    • Acontecimientos
      • Tiempo - Every 0.01 seconds of game time
    • Condiciones
    • Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • DistanciaCD Mayor que o igual a 2000
        • Entonces: Acciones
          • Custom script: call RemoveLocation(udg_TempPointCD[1])
          • Custom script: call RemoveLocation(udg_TempPointCD[2])
          • Grupo de unidad - Pick every unit in targetsCD[1] and do (Actions)
            • Bucle: Acciones
              • Grupo de unidad - Remove (Picked unit) from targetsCD[1]
          • Grupo de unidad - Pick every unit in GroupDmgCD and do (Actions)
            • Bucle: Acciones
              • Grupo de unidad - Remove (Picked unit) from GroupDmgCD
          • Detonador - Turn off (This trigger)
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • ContCD[2] Mayor que o igual a 400
        • Entonces: Acciones
          • Set DistanciaCD = (DistanciaCD + 20)
          • Set TempPointCD[3] = (TempPointCD[1] offset by (Real(DistanciaCD)) towards AnguloCD degrees)
          • Unidad - Create 1 blastCD for (Owner of casterCD) at TempPointCD[3] facing AnguloCD degrees
          • Unidad - Add a 0.20 second Genérico expiration timer to (Last created unit)
          • Set targetsCD[1] = (Units within 100.00 of TempPointCD[3] matching (((Matching unit) belongs to an enemy of (Owner of casterCD)) Igual a True))
          • Custom script: call RemoveLocation(udg_TempPointCD[3])
          • Grupo de unidad - Pick every unit in targetsCD[1] and do (Actions)
            • Bucle: Acciones
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si: Condiciones
                  • ((Picked unit) is in GroupDmgCD) Igual a False
                • Entonces: Acciones
                  • Grupo de unidad - Add (Picked unit) to GroupDmgCD
                  • Unidad - Cause casterCD to damage (Picked unit), dealing 2500.00 damage of attack type Conjuros and damage type Normal
                  • Efecto especial - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
                • Otros: Acciones
          • Custom script: call DestroyGroup(udg_targetsCD[1])
        • Otros: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • ContCD[1] Mayor que o igual a 100
            • Entonces: Acciones
              • Set TempPointCD[3] = (TempPointCD[1] offset by (Real(DistanciaCD)) towards AnguloCD degrees)
              • Unidad - Create 1 charging for (Owner of casterCD) at TempPointCD[3] facing AnguloCD degrees
              • Unidad - Add a 2.00 second Genérico expiration timer to (Last created unit)
              • Set ContCD[1] = 0
              • Custom script: call RemoveLocation(udg_TempPointCD[3])
            • Otros: Acciones
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si: Condiciones
                  • ContCD[1] Menor que o igual a 100
                • Entonces: Acciones
                  • Animación - Play casterCD's stand ready animation
                  • Set ContCD[1] = (ContCD[1] + 1)
                  • Set ContCD[2] = (ContCD[2] + 1)
                • Otros: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • ContCD[2] Igual a 1
            • Entonces: Acciones
              • Unidad - Activar pausa casterCD
            • Otros: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • ContCD[2] Igual a 400
            • Entonces: Acciones
              • Unidad - Desactivar pausa casterCD
              • Animación - Play casterCD's attack animation
            • Otros: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • ContCD[2] Igual a 297
            • Entonces: Acciones
              • Unidad - Create 1 charging2 for (Owner of casterCD) at (Position of casterCD) facing Vista edificio predeterminada degrees
              • Unidad - Add a 1.00 second Genérico expiration timer to (Last created unit)
            • Otros: Acciones
I hope U understand
 
Status
Not open for further replies.
Top