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

[Solved] Black Cleaver dosen't stack

Status
Not open for further replies.
Level 6
Joined
Aug 14, 2016
Messages
174
I using this Item Black Cleaver to Cleave those armor from enemies.
latest
UNIQUE: Dealing physical damage to an enemy Cleaves them, reducing their armor by 4% for 6 seconds, stacking up to 6 times for a maximum of 24%.
  • Black Cleaver Stacking
    • Events
      • Game - GDD_Event becomes Equal to 1.00
    • Conditions
      • (GDD_DamageSource has an item of type Black Cleaver) Equal to True
      • (GDD_DamagedUnit is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamageSource has buff Division 1 ) Equal to True
        • Then - Actions
          • Set BCPoint = (Position of GDD_DamagedUnit)
          • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
          • Set BCDummy = (Last created unit)
          • Unit - Set level of Black Cleaver Stack for BCDummy to 2
          • Unit - Add a 0.80 second Generic expiration timer to BCDummy
          • Unit - Order BCDummy to Attack GDD_DamagedUnit
          • Unit - Order BCDummy to Attack GDD_DamagedUnit
          • Unit - Order BCDummy to Attack GDD_DamagedUnit
          • Custom script: call RemoveLocation(udg_BCPoint)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (GDD_DamageSource has buff Division 2 ) Equal to True
            • Then - Actions
              • Set BCPoint = (Position of GDD_DamagedUnit)
              • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
              • Set BCDummy = (Last created unit)
              • Unit - Set level of Black Cleaver Stack for BCDummy to 3
              • Unit - Add a 0.80 second Generic expiration timer to BCDummy
              • Unit - Order BCDummy to Attack GDD_DamagedUnit
              • Unit - Order BCDummy to Attack GDD_DamagedUnit
              • Unit - Order BCDummy to Attack GDD_DamagedUnit
              • Custom script: call RemoveLocation(udg_BCPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (GDD_DamageSource has buff Division 3 ) Equal to True
                • Then - Actions
                  • Set BCPoint = (Position of GDD_DamagedUnit)
                  • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
                  • Set BCDummy = (Last created unit)
                  • Unit - Set level of Black Cleaver Stack for BCDummy to 4
                  • Unit - Add a 0.80 second Generic expiration timer to BCDummy
                  • Unit - Order BCDummy to Attack GDD_DamagedUnit
                  • Unit - Order BCDummy to Attack GDD_DamagedUnit
                  • Unit - Order BCDummy to Attack GDD_DamagedUnit
                  • Custom script: call RemoveLocation(udg_BCPoint)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (GDD_DamageSource has buff Division 4 ) Equal to True
                    • Then - Actions
                      • Set BCPoint = (Position of GDD_DamagedUnit)
                      • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
                      • Set BCDummy = (Last created unit)
                      • Unit - Set level of Black Cleaver Stack for BCDummy to 5
                      • Unit - Add a 0.80 second Generic expiration timer to BCDummy
                      • Unit - Order BCDummy to Attack GDD_DamagedUnit
                      • Unit - Order BCDummy to Attack GDD_DamagedUnit
                      • Unit - Order BCDummy to Attack GDD_DamagedUnit
                      • Custom script: call RemoveLocation(udg_BCPoint)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (GDD_DamageSource has buff Division 5 ) Equal to True
                        • Then - Actions
                          • Set BCPoint = (Position of GDD_DamagedUnit)
                          • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
                          • Set BCDummy = (Last created unit)
                          • Unit - Set level of Black Cleaver Stack for BCDummy to 6
                          • Unit - Add a 0.80 second Generic expiration timer to BCDummy
                          • Unit - Order BCDummy to Attack GDD_DamagedUnit
                          • Unit - Order BCDummy to Attack GDD_DamagedUnit
                          • Unit - Order BCDummy to Attack GDD_DamagedUnit
                          • Custom script: call RemoveLocation(udg_BCPoint)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (GDD_DamageSource has buff Division 6 ) Equal to True
                            • Then - Actions
                              • Set BCPoint = (Position of GDD_DamagedUnit)
                              • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
                              • Set BCDummy = (Last created unit)
                              • Unit - Set level of Black Cleaver Stack for BCDummy to 6
                              • Unit - Add a 0.80 second Generic expiration timer to BCDummy
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Custom script: call RemoveLocation(udg_BCPoint)
                            • Else - Actions
                              • Set BCPoint = (Position of GDD_DamagedUnit)
                              • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
                              • Set BCDummy = (Last created unit)
                              • Unit - Add a 0.80 second Generic expiration timer to BCDummy
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Unit - Order BCDummy to Attack GDD_DamagedUnit
                              • Custom script: call RemoveLocation(udg_BCPoint)
But after i attack, the buff still x1, dosen't x2 stack.
upload_2018-6-27_21-22-28.png
upload_2018-6-27_21-23-17.png
upload_2018-6-27_21-21-31.png
 
Level 3
Joined
May 12, 2015
Messages
32
Try removing the current buff before applying the new buff (ex. If unit has Division 2 buff remove it then order the unit to attack to apply Division 3 buff)
 
Level 6
Joined
Aug 14, 2016
Messages
174
Try removing the current buff before applying the new buff (ex. If unit has Division 2 buff remove it then order the unit to attack to apply Division 3 buff)
Ok, tks, i through this problem can't fixed.
  • Frozen Mallet Copy Copy 2
    • Events
      • Game - GDD_Event becomes Equal to 1.00
    • Conditions
      • (GDD_DamageSource has an item of type Black Cleaver) Equal to True
      • (GDD_DamagedUnit is A Hero) Equal to True
    • Actions
      • Set BCPoint = (Position of GDD_DamagedUnit)
      • Unit - Create 1 BlackCleaverStack Dummy for (Owner of GDD_DamageSource) at BCPoint facing (Facing of GDD_DamageSource) degrees
      • Set BCDummy = (Last created unit)
      • Unit - Add a 0.80 second Generic expiration timer to BCDummy
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 1 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 1 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 2 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 2 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 3 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 3 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 4
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 4 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 4 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 5
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 5 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 5 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 6
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GDD_DamagedUnit has buff Cleaver 6 ) Equal to True
        • Then - Actions
          • Unit - Remove Cleaver 6 buff from BCDummy
          • Unit - Set level of Black Cleaver Stack for BCDummy to 6
        • Else - Actions
      • Unit - Order BCDummy to Attack GDD_DamagedUnit
      • Unit - Order BCDummy to Attack GDD_DamagedUnit
      • Unit - Order BCDummy to Attack GDD_DamagedUnit
      • Custom script: call RemoveLocation(udg_BCPoint)
 
Level 3
Joined
May 12, 2015
Messages
32
You shouldn't remove the buff from the dummy, you should remove it from the GDD_DamagedUnit (who actually has the buff).

Edit: now that i look into my past post it does seem confusing. You remove the buff from the damaged unit then order the dummy to attack the damaged unit

Edit2:unless this somehow fixed it?
 
Last edited:
Status
Not open for further replies.
Top