Change ownership on hit

sunshinex3

You can change this now in User CP.
Reaction score
7
Trigger:
  • Infect passive lvl 1
    • Events
    • Unit - A unit Is attacked
    • Conditions
    • ((Level of Infect (flood passive) for (Attacking unit)) Equal to 1) and ((Percentage life of (Attacked unit)) Less than or equal to 10.00)
    • ((Max research level of Infection Form Upgrade level 1 (flood) for (Owner of (Attacking unit))) Equal to 1) and (((Unit-type of (Attacking unit)) Equal to Infectious Form (flood)) and ((Percentage life of (Attacked unit)) Less than or equal to 10.00))
    • Actions
    • Unit - Set life of (Attacked unit) to 50.00%
    • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
    • Unit - Remove (Attacking unit) from the game
    • Unit - Remove Negative buffs from (Attacked unit)
    • Animation - Change (Attacked unit)'s vertex coloring to (100.00%, 50.00%, 0.00%) with 0.00% transparency
    • Special Effect - Create a special effect attached to the chest of (Attacked unit) using war3mapImported\Flood_Final_squished.mdx
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 1
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 2
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Unit - Add Flood Life Regeneration (flood infection form) to (Attacked unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 3
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Unit - Add Flood Life Regeneration (flood infection form) to (Attacked unit)
    • Unit - Add Flood Life Bonus (flood infected form) to (Attacked unit)
    • Else - Actions
    • Do nothing


the 2 first condition don't work for this i need it to require the upgrade. the second condition works. every thing but the first condition "(Level of Infect (flood passive) for (Attacking unit)) Equal to 1) and ((Percentage life of (Attacked unit)) Less than or equal to 10.00)". the other condition that is disabled doesn't work either. the up grade has 10 lvls if that has any thing to do with it.

Any idea of why this trigger goes off with out minding the first condition.
 
Last edited:

jonas

You can change this now in User CP.
Reaction score
64
Are you sure that max research level is what you want? I think you want the current research level.

Are you sure you know how multiple conditions work? They are connected with and IIRC, not or.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
WOW, yeah oops, that was it i accidentally did max research instead of current ty jonas. Hear is the trigger that works ty.

Trigger:
  • Infect passive lvl 1
    • Events
    • Unit - A unit Is attacked
    • Conditions
    • ((Current research level of Infection Form Upgrade level 1 (flood) for (Owner of (Attacking unit))) Equal to 1) and (((Unit-type of (Attacking unit)) Equal to Infectious Form (flood)) and ((Percentage life of (Attacked unit)) Less than or equal to 10.00))
    • Actions
    • Unit - Set life of (Attacked unit) to 50.00%
    • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
    • Unit - Remove (Attacking unit) from the game
    • Unit - Remove Negative buffs from (Attacked unit)
    • Animation - Change (Attacked unit)'s vertex coloring to (100.00%, 50.00%, 0.00%) with 0.00% transparency
    • Special Effect - Create a special effect attached to the chest of (Attacked unit) using war3mapImported\Flood_Final_squished.mdx
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 1
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 2
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Unit - Add Flood Life Regeneration (flood infection form) to (Attacked unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Current research level of Infected Upgrade (flood) for (Owner of (Attacking unit))) Equal to 3
    • Then - Actions
    • Unit - Add Flood Damage Bonus (flood infected form) to (Attacked unit)
    • Unit - Add Flood Life Regeneration (flood infection form) to (Attacked unit)
    • Unit - Add Flood Life Bonus (flood infected form) to (Attacked unit)
    • Else - Actions
    • Do nothing


Again ty so much now i am truly close to the finish line.
 
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