• 🏆 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!

[Trigger] Little Help on this spell

Status
Not open for further replies.
Level 7
Joined
Mar 6, 2014
Messages
203
  • Essence Shift
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • Set Ess_Index = (Ess_Index + 1)
      • Set Ess_Caster[Ess_Index] = GDD_DamageSource
      • Set Ess_Target[Ess_Index] = GDD_DamagedUnit
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ess_Caster[Ess_Index] has buff Essence Shift ) Equal to True
          • (Ess_Caster[Ess_Index] is an illusion) Not equal to True
          • (Unit-type of Ess_Caster[Ess_Index]) Not equal to Shadow Dummy
          • (Ess_Target[Ess_Index] is A Hero) Equal to True
          • (Ess_Target[Ess_Index] belongs to an enemy of (Owner of Ess_Caster[Ess_Index])) Equal to True
          • (Agility of Ess_Target[Ess_Index] (Exclude bonuses)) Greater than or equal to 10
          • Ess_Index Greater than or equal to 1
        • Then - Actions
          • Set Ess_Timer[Ess_Index] = (8.00 x (Real((Level of Essence Shift for Ess_Caster[Ess_Index]))))
          • Hero - Modify Strength of Ess_Target[Ess_Index]: Subtract 3
          • Hero - Modify Agility of Ess_Target[Ess_Index]: Subtract 3
          • Hero - Modify Intelligence of Ess_Target[Ess_Index]: Subtract 3
          • Hero - Modify Agility of Ess_Caster[Ess_Index]: Add 9
          • Trigger - Turn on Essence Shift Timer <gen>
        • Else - Actions
  • Essence Shift Timer
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer Ess_Index2) from 1 to Ess_Index, do (Actions)
        • Loop - Actions
          • Set Ess_Timer[Ess_Index2] = (Ess_Timer[Ess_Index2] - 0.03)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Ess_Timer[Ess_Index2] Less than or equal to 0.00
            • Then - Actions
              • Hero - Modify Strength of Ess_Target[Ess_Index2]: Add 3
              • Hero - Modify Agility of Ess_Target[Ess_Index2]: Add 3
              • Hero - Modify Intelligence of Ess_Target[Ess_Index2]: Add 3
              • Hero - Modify Agility of Ess_Caster[Ess_Index2]: Subtract 9
              • Set Ess_Caster[Ess_Index2] = Ess_Caster[Ess_Index]
              • Set Ess_Target[Ess_Index2] = Ess_Target[Ess_Index2]
              • Set Ess_Timer[Ess_Index2] = Ess_Timer[Ess_Index]
              • Set Ess_Index = (Ess_Index - 1)
              • Set Ess_Index2 = (Ess_Index2 - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Ess_Index Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                • Else - Actions
            • Else - Actions
My problem is it doesn't give the stolen stats well. help me fix this
 
Status
Not open for further replies.
Top