What's wrong with this?

DarkBELL

New Member
Reaction score
1
I'm stuck with yet another skill

This one is called "Savage" its increase the Owner's attackspeed each time its attacks the same target, but revert the bonus back to 0 if the Owner of the skills target a different unit

I create one Real Ability with description and stuff

Then Create 4 Dummies abilities base on Endurance Aura

I create a trigger which give the dummy ability to the unit that Learn the Real Ability

and set the Dmmy Ability level to 1 which gives 10% attackspeed aura
Each time the unit attacks the same target the Bonus goes up by 10% but if it attacks a different target the bonus will bounce back to 5%

At level 4 of the skill - 400% maximum attackspeed bonus can be aquired

It seems to work at first around level 1-2 where the bonus rate is 5% per attacks but when its get to Level 3-4 It starts to ignore conditions and keeps the 400% bons attackspeed on the unit even though the Owner of the skills has attack a different unit

This is my Trigger


This is the Trigger that turn on necessary trigger when I Learn the Skill, There are 4 of these trigger, it pretty much nearly the same thing
Trigger:
  • Savage Learn Level 1
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Savage
    • Actions
      • Set Savage_Hero = (Learning Hero)
      • Unit - Add Savage Attackspeed (Level 1) to Savage_Hero
      • Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
      • Trigger - Turn off Savage Attackspeed <gen>
      • Trigger - Turn off Savage Attackspeed 2 <gen>
      • Trigger - Turn on Savage Attackspeed <gen>
      • Wait 2.00 seconds
      • Trigger - Turn on Savage Learn Level 2 <gen>
      • Trigger - Turn off (This trigger)


Trigger:
  • Savage Learn Level 2
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Savage
    • Actions
      • Set Savage_Hero = (Learning Hero)
      • Unit - Remove Savage Attackspeed (Level 1) from Savage_Hero
      • Unit - Add Savage Attackspeed (Level 2) to Savage_Hero
      • Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
      • Trigger - Turn off Savage Attackspeed <gen>
      • Trigger - Turn off Savage Attackspeed 2 <gen>
      • Trigger - Turn on Savage Attackspeed <gen>
      • Wait 2.00 seconds
      • Trigger - Turn on Savage Learn Level 3 <gen>
      • Trigger - Turn off (This trigger)


Trigger:
  • Savage Learn Level 3
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Savage
    • Actions
      • Set Savage_Hero = (Learning Hero)
      • Unit - Remove Savage Attackspeed (Level 2) from Savage_Hero
      • Unit - Add Savage Attackspeed (Level 3) to Savage_Hero
      • Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
      • Trigger - Turn off Savage Attackspeed <gen>
      • Trigger - Turn off Savage Attackspeed 2 <gen>
      • Trigger - Turn on Savage Attackspeed <gen>
      • Wait 2.00 seconds
      • Trigger - Turn on Savage Learn Level 4 <gen>
      • Trigger - Turn off (This trigger)


Trigger:
  • Savage Learn Level 4
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Savage
    • Actions
      • Set Savage_Hero = (Learning Hero)
      • Unit - Remove Savage Attackspeed (Level 3) from Savage_Hero
      • Unit - Add Savage Attackspeed (Level 4) to Savage_Hero
      • Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
      • Trigger - Turn off Savage Attackspeed <gen>
      • Trigger - Turn off Savage Attackspeed 2 <gen>
      • Trigger - Turn on Savage Attackspeed <gen>
      • Trigger - Turn off (This trigger)



Here are the skills Trigger, There are two part to it, one happened when a unit is attack, it trigger of the Attacking unit is the unit with skill, it stored the Attacked unit in variable and check if it the same unit with the other trigger if it is then increase the dummy spell level by 1, if it isn't then set the level of dummy spell to 1. Then it close itself and turn on the other trigger which do the same thing. I believe two trigger is needed because i need to store 2 unit variable and check if they are the same

Trigger:
  • Savage Attackspeed
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to Savage_Hero
    • Actions
      • Set Savage_Target = (Attacked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Savage_Target Equal to Savage_Target2
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 1
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 1) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 2
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 2) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 3
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 3) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 4
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 4) for Savage_Hero
            • Else - Actions
        • Else - Actions
          • Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
      • Trigger - Turn on Savage Attackspeed 2 <gen>
      • Trigger - Turn off (This trigger)


Trigger:
  • Savage Attackspeed 2
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to Savage_Hero
    • Actions
      • Set Savage_Target2 = (Attacked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Savage_Target2 Equal to Savage_Target
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 1
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 1) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 2
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 2) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 3
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 3) for Savage_Hero
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Savage for Savage_Hero) Equal to 4
            • Then - Actions
              • Unit - Increase level of Savage Attackspeed (Level 4) for Savage_Hero
            • Else - Actions
        • Else - Actions
          • Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
          • Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
      • Trigger - Turn on Savage Attackspeed <gen>
      • Trigger - Turn off (This trigger)


I cannot find any error in my triggering :( since the skills does work on the first two levels

Can anybody help me with this, or do you have an alternative way to do this skill? I would be appreciate if someone could help me figure this out

Thank you.
 

NeuroToxin

New Member
Reaction score
46
First of all, this could all be in one trigger, A unit is attacked, Unit has ability equal to true, unit ability = to X, increase units attack speed by X. But, you need a damage detection system in order to correctly tell whether or not the unit actually received the damage.
EDIT: By the way, please use [ wc3] [ /wc3] tags, I cant read that crap.
 

tommerbob

Minecraft. :D
Reaction score
110
I don't have an exact answer, but I don't recommend using "A unit is attacked" event. With that, someone could bug the spell and spam attack/stop and gain 400% attack speed really fast. Use a damage detection system instead.
 

Sajin

User title under construction.
Reaction score
56
Perhaps it just that endurance aura doesn't stack? Im guessing but if it works for a little bit but not at later times, maybe it has a limit to stacking, or maybe it doesn't stack at all
 

tommerbob

Minecraft. :D
Reaction score
110
Perhaps it just that endurance aura doesn't stack? Im guessing but if it works for a little bit but not at later times, maybe it has a limit to stacking, or maybe it doesn't stack at all

Aura's with the same buff do not stack at all.

I'd recommend using the Item ability Attack Speed Bonus instead of auras. Just give the ability 100 levels, 0% at the first level, and increasing by 5% increase each level. Give your unit the ability in the Object Editor. In triggering, detect when he deals damage and set the target to a variable. When he attacks again, if it is the same target, increase the level of your ability accordingly.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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