• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help spell!

Status
Not open for further replies.
Level 2
Joined
Sep 22, 2014
Messages
6
Hello! I would like to help me with this spell ...

What it does is give more armor and regeneration of life per second when a certain percentage of life is reached, but never activated :vw_sad: :vw_sad: :vw_sad: HELP!!!
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
You can use a damage detection system and check if the effect should be applied when the unit takes damage.
If so, you give him item based abilities that give armor and health regeneration.

EDIT:
And indeed as IcemanBo wants to mention, this place is when you have a trigger or script but it doesnt work.
(In which case, you have to show it.)
If not, then the World Editor Help Zone is the place to ask questions of how to do it.
 
Level 2
Joined
Sep 22, 2014
Messages
6
Sorry!

I'm sorry, these are the detonators:

  • Animal Instinct inicio
    • Acontecimientos
      • Unidad - A unit Adquiere una habilidad
    • Condiciones
      • (Learned Hero Skill) Igual a Animal Instinct
    • Acciones
      • Detonador - Add to Animal Instinct inicio <gen> the event (Unidad - (Learning Hero) Recibe daño)
  • Animal Instinct
    • Acontecimientos
    • Condiciones
      • ((Triggering unit) is alive) Igual a True
      • ((Triggering unit) has buff Animal Instinct ) Igual a True
    • Acciones
      • Set AI_Unit = (Triggering unit)
      • Set AI_Index = (AI_Index + 1)
      • Set AI_CounterIndex[AI_Index] = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • (Percentage life of AI_Unit) Menor que o igual a 15.00
          • (Level of Animal Instinct for AI_Unit) Igual a 1
        • Entonces: Acciones
          • Detonador - Turn on Animal Instintc Loop <gen>
          • Unidad - Add Animal Instinct ACT 1 to AI_Unit
          • Unidad - Add Animal Instinct ACT 2 to AI_Unit
          • Detonador - Turn off Animal Instinct <gen>
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • (Percentage life of AI_Unit) Menor que o igual a 22.00
          • (Level of Animal Instinct for AI_Unit) Igual a 2
        • Entonces: Acciones
          • Detonador - Turn on Animal Instintc Loop <gen>
          • Unidad - Add Animal Instinct ACT 1 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 1 for AI_Unit to 2
          • Unidad - Add Animal Instinct ACT 2 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 2 for AI_Unit to 2
          • Detonador - Turn off Animal Instinct <gen>
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • (Percentage life of AI_Unit) Menor que o igual a 28.00
          • (Level of Animal Instinct for AI_Unit) Igual a 3
        • Entonces: Acciones
          • Detonador - Turn on Animal Instintc Loop <gen>
          • Unidad - Add Animal Instinct ACT 1 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 1 for AI_Unit to 3
          • Unidad - Add Animal Instinct ACT 2 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 2 for AI_Unit to 3
          • Detonador - Turn off Animal Instinct <gen>
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • (Percentage life of AI_Unit) Menor que o igual a 32.00
          • (Level of Animal Instinct for AI_Unit) Igual a 4
        • Entonces: Acciones
          • Detonador - Turn on Animal Instintc Loop <gen>
          • Unidad - Add Animal Instinct ACT 1 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 1 for AI_Unit to 4
          • Unidad - Add Animal Instinct ACT 2 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 2 for AI_Unit to 4
          • Detonador - Turn off Animal Instinct <gen>
        • Otros: Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • (Percentage life of AI_Unit) Menor que o igual a 40.00
          • (Level of Animal Instinct for AI_Unit) Igual a 5
        • Entonces: Acciones
          • Detonador - Turn on Animal Instintc Loop <gen>
          • Unidad - Add Animal Instinct ACT 1 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 1 for AI_Unit to 5
          • Unidad - Add Animal Instinct ACT 2 to AI_Unit
          • Unidad - Set level of Animal Instinct ACT 2 for AI_Unit to 5
          • Detonador - Turn off Animal Instinct <gen>
        • Otros: Acciones
  • Animal Instintc Loop
    • Acontecimientos
      • Tiempo - Every 1.00 seconds of game time
    • Condiciones
    • Acciones
      • For each (Integer CurrentIndex) from 1 to AI_Index, do (Actions)
        • Bucle: Acciones
          • Efecto especial - Create a special effect attached to the hand left of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[1] = (Last created special effect)
          • Efecto especial - Create a special effect attached to the hand right of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[2] = (Last created special effect)
          • Efecto especial - Create a special effect attached to the overhead of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[3] = (Last created special effect)
          • Set AI_CounterIndex[CurrentIndex] = (AI_CounterIndex[CurrentIndex] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • AI_CounterIndex[CurrentIndex] Igual a 5
            • Entonces: Acciones
              • Efecto especial - Destroy AI_Efect[1]
              • Efecto especial - Destroy AI_Efect[2]
              • Efecto especial - Destroy AI_Efect[3]
              • Unidad - Remove Animal Instinct ACT 1 from AI_Unit
              • Unidad - Remove Animal Instinct ACT 2 from AI_Unit
              • Set AI_CounterIndex[CurrentIndex] = AI_CounterIndex[AI_Index]
              • Set AI_Index = (AI_Index - 1)
              • Set CurrentIndex = (CurrentIndex - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si: Condiciones
                  • AI_Index Igual a 0
                • Entonces: Acciones
                  • Detonador - Turn off (This trigger)
                  • Detonador - Turn on Animal Instinct <gen>
                • Otros: Acciones
            • Otros: Acciones
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
  • Animal Instinct inicio
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Animal Instinct
    • Actions
      • Trigger - Add to Animal Instinct inicio <gen> the event (Unit - (Learning Hero) Takes damage)
  • Animal Instinct
    • Events
    • Conditions
      • ((Triggering unit) is alive) Equal to True
      • ((Triggering unit) has buff Animal Instinct ) Equal to True
    • Actions
      • Set AI_Unit = (Triggering unit)
      • Set AI_Index = (AI_Index + 1)
      • Set AI_CounterIndex[AI_Index] = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of AI_Unit) Less than or equal to 15.00
          • (Level of Animal Instinct for AI_Unit) Equal to 1
        • Then - Actions
          • Trigger - Turn on Animal Instintc Loop <gen>
          • Unit - Add Animal Instinct ACT 1 to AI_Unit
          • Unit - Add Animal Instinct ACT 2 to AI_Unit
          • Trigger - Turn off Animal Instinct <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of AI_Unit) Less than or equal to 22.00
          • (Level of Animal Instinct for AI_Unit) Equal to 2
        • Then - Actions
          • Trigger - Turn on Animal Instintc Loop <gen>
          • Unit - Add Animal Instinct ACT 1 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 1 for AI_Unit to 2
          • Unit - Add Animal Instinct ACT 2 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 2 for AI_Unit to 2
          • Trigger - Turn off Animal Instinct <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of AI_Unit) Less than or equal to 28.00
          • (Level of Animal Instinct for AI_Unit) Equal to 3
        • Then - Actions
          • Trigger - Turn on Animal Instintc Loop <gen>
          • Unit - Add Animal Instinct ACT 1 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 1 for AI_Unit to 3
          • Unit - Add Animal Instinct ACT 2 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 2 for AI_Unit to 3
          • Trigger - Turn off Animal Instinct <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of AI_Unit) Less than or equal to 32.00
          • (Level of Animal Instinct for AI_Unit) Equal to 4
        • Then - Actions
          • Trigger - Turn on Animal Instintc Loop <gen>
          • Unit - Add Animal Instinct ACT 1 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 1 for AI_Unit to 4
          • Unit - Add Animal Instinct ACT 2 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 2 for AI_Unit to 4
          • Trigger - Turn off Animal Instinct <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of AI_Unit) Less than or equal to 40.00
          • (Level of Animal Instinct for AI_Unit) Equal to 5
        • Then - Actions
          • Trigger - Turn on Animal Instintc Loop <gen>
          • Unit - Add Animal Instinct ACT 1 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 1 for AI_Unit to 5
          • Unit - Add Animal Instinct ACT 2 to AI_Unit
          • Unit - Set level of Animal Instinct ACT 2 for AI_Unit to 5
          • Trigger - Turn off Animal Instinct <gen>
        • Else - Actions
  • Animal Instintc Loop
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer CurrentIndex) from 1 to AI_Index, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect attached to the hand left of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[1] = (Last created special effect)
          • Special Effect - Create a special effect attached to the hand right of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[2] = (Last created special effect)
          • Special Effect - Create a special effect attached to the overhead of AI_Unit using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
          • Set AI_Efect[3] = (Last created special effect)
          • Set AI_CounterIndex[CurrentIndex] = (AI_CounterIndex[CurrentIndex] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • AI_CounterIndex[CurrentIndex] Equal to 5
            • Then - Actions
              • Special Effect - Destroy AI_Efect[1]
              • Special Effect - Destroy AI_Efect[2]
              • Special Effect - Destroy AI_Efect[3]
              • Unit - Remove Animal Instinct ACT 1 from AI_Unit
              • Unit - Remove Animal Instinct ACT 2 from AI_Unit
              • Set AI_CounterIndex[CurrentIndex] = AI_CounterIndex[AI_Index]
              • Set AI_Index = (AI_Index - 1)
              • Set CurrentIndex = (CurrentIndex - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • AI_Index Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                  • Trigger - Turn on Animal Instinct <gen>
                • Else - Actions
            • Else - Actions
Be aware that the unit has to have the buff "Animal Instinct" to run this effect and the unit must fall below 15/22/28/32/40% health.

  • Set AI_Index = (AI_Index + 1)
  • Set AI_CounterIndex[AI_Index] = 0
These two have to be placed when you turn on the third ability.
They currently create a massive number and dont do shit.
This spell is really not MUI and leaks a lot of stuff.
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
After 5 seconds.
The third trigger runs per second and increases an indexed counter and will remove the abilities when that counter reaches 5.

Possible Ability Tooltip:
Passive: Increases health regeneration by 5 and armor by 10 for 5 seconds when falling below 15% health.
 
Status
Not open for further replies.
Top