Why this trigger doesnt works as I expect

NeosDany

Member
Reaction score
1
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • Si: Condiciones
      • ((This trigger) is on) Igual a True
    • Entonces: Acciones
      • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
        • Bucle: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Igual a 0
            • Entonces: Acciones
              • Unidad - Add Barrera Cronologica Efecto Especial to (Picked unit)
            • Otros: Acciones
          • Unidad - Activar pausa (Picked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 1
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 60.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 2
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 85.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 3
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 120.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones
    • Otros: Acciones


This trigger must damage the target and pause them but it doesnt. why?
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
It'd be easier to tell if it was in English...
 

NeosDany

Member
Reaction score
1
This is the english trigger, note that variable names are displayed on Spanish cause they dont need to be in English to understand what they do
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((This trigger) is on) Equal to True
    • Then - Actions
      • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Equal to 0
            • Then - Actions
              • Unit - Add Barrera Cronologica Efecto Especial to (Picked unit)
            • Else - Actions
          • Unit - Pause (Picked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Barrera_Cronologica_Integer Equal to 1
        • Then - Actions
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to Tru
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 60.00 damage of attack type Magic and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Barrera_Cronologica_Integer Equal to 2
        • Then - Actions
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to Tru
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 85.00 damage of attack type Magic and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Barrera_Cronologica_Integer Equal to 3
        • Then - Actions
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to Tru
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 120.00 damage of attack type Magic and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Else - Actions
    • Else - Actions
 

jomik

New Member
Reaction score
17
Please post all related triggers too... I don't see where you see Barrera_Cronologica_Unit anywhere, or the Barrera_Cronologica_GU :O
or Barrera_Cronologica_Integer
 

millz-

New Member
Reaction score
25
The whole chunk only showed you dealing damage to the picked units, nothing about pausing?
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
((This trigger) is on) Equal to True
It wont be running this check if the trigger is off, so there is no point to this being here.

Trigger:
  • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
    • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Equal to 0
    • Then - Actions
    • Unit - Add Barrera Cronologica Efecto Especial to (Picked unit)
    • Else - Actions
    • Unit - Pause (Picked unit)


You dont set any units to the unit group

Barrera_Cronologica_Integer Equal to 1

You never set this interger.
 

NeosDany

Member
Reaction score
1
This Spell Uses 5 triggers, the one I showed does the damage, and my question was why it doesnt damages the group units see this :

Trigger 1
Trigger:
  • Events
    • Unit - A unit Learns a skill
    • Conditions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • Si: Condiciones
        • (Learned Hero Skill) Igual a Barrera Cronológica
      • Entonces: Acciones
        • Set Barrera_Cronologica_Integer = (Barrera_Cronologica_Integer + 1)
      • Otros: Acciones

Trigger 2
Trigger:
  • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Barrera Cronológica
        • Then - Actions
          • Set Barrera_Cronologica_Unit = (Casting unit)
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to Tru
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Pause (Picked unit)
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
          • Trigger - Turn on Barrera Cronologica hace Efecto <gen>
        • Else - Actions

Trigger 3
Trigger:
  • Events
    • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((This trigger) is on) Equal to True
        • Then - Actions
          • Entonces: Acciones
      • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
      • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
      • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
        • Bucle: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Igual a 0
            • Entonces: Acciones
              • Unidad - Add Barrera Cronologica Efecto Especial to (Picked unit)
            • Otros: Acciones
          • Unidad - Activar pausa (Picked unit)
      • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
      • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 1
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 60.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 2
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 85.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • Barrera_Cronologica_Integer Igual a 3
        • Entonces: Acciones
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (200.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is Una estructura) Igual a False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Igual a Tr
          • Grupo de unidad - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Bucle: Acciones
              • Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 120.00 damage of attack type Magia and damage type Normal
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
        • Otros: Acciones

Trigger 4
Trigger:
  • Events
    • Unit - A unit Finishes casting an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Barrera Cronológica
        • Then - Actions
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (1000000.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to
          • Trigger - Turn off Barrera Cronologica hace Efecto <gen>
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Unpause (Picked unit)
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Equal to 1
              • Then - Actions
                • Unit - Remove Barrera Cronologica Efecto Especial from (Picked unit)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
            • Else - Actions

Trigger 5
Trigger:
  • Unit - A unit Stops casting an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Barrera Cronológica
        • Then - Actions
          • Set Barrera_Cronologica_Punto = (Position of Barrera_Cronologica_Unit)
          • Set Barrera_Cronologica_GU = (Units within (1000000.00 + (100.00 x (Real(Barrera_Cronologica_Integer)))) of Barrera_Cronologica_Punto matching ((((Matching unit) is A structure) Equal to False) and ((((Owner of (Matching unit)) is an enemy of (Owner of Barrera_Cronologica_Unit)) Equal to
          • Trigger - Turn off Barrera Cronologica hace Efecto <gen>
          • Unit Group - Pick every unit in Barrera_Cronologica_GU and do (Actions)
            • Loop - Actions
              • Unit - Unpause (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Barrera Cronologica Efecto Especial for (Picked unit)) Equal to 1
            • Then - Actions
              • Unit - Remove Barrera Cronologica Efecto Especial from (Picked unit)
          • Custom script: call DestroyGroup (udg_Barrera_Cronologica_GU)
          • Custom script: call RemoveLocation (udg_Barrera_Cronologica_Punto)
            • Else - Actions
        • Else - Actions
 

X.Terror.X

New Member
Reaction score
10
Unidad - Cause Barrera_Cronologica_Unit to damage (Picked unit), dealing 85.00 damage of attack type Magia and damage type Normal

why dont you store the damage as integer varible clears up alot of space and u dont have to post the action 4 times [if integer, then, else]
its also confusing to read since most is still spanish

if your spell is not channeling use the 2 events to starts the effect of an ability then trigger 5 is useless
but im not sure if u used channeling ability or not if yes u need to change event i think
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Unit - A unit Starts the effect of an ability

Does your ability place an effect on the caster, if not this wont work, you might want to try a unit casts an ability or channels a ability. Not sure the exact names, it's been awhile sence I have open the editor.
 

millz-

New Member
Reaction score
25
My bad on previous post, I just saw the effect adding and pausing. If the ability is channelling nothing seems wrong. Which means, the problem probably lies within the setting of that unit group.
 
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