trigger wont continue?

sunshinex3

You can change this now in User CP.
Reaction score
7
[/noparse][/b]
Zerg Primal Bonuses
Events
Unit - A unit Dies
Conditions
And - All (Conditions) are true
Conditions
(Level of Damage Bonus (all units) for (Killing unit)) Equal to 100
(Current research level of Primal Evolution (Zerg) for (Owner of (Killing unit))) Equal to 1
Actions
Unit - Set level of Damage Bonus (all units) for (Killing unit) to 1
Unit - Set level of Attack Speed Bonus (All Units) for (Killing unit) to 1
Unit - Set level of Armor Bonus (All Units) for (Killing unit) to 1
Unit - Remove Life Bonus (All Units 10) from (Killing unit)
Unit - Add Life Bonus (Zerg Primal Upgrade) to (Killing unit)
Unit - Add Attack Speed Bonus (Zerg Primal Upgrade) to (Killing unit)
Unit - Add Damage Bonus (Zerg Primal Upgrade) to (Killing unit)
Unit - Add Armor Bonus (Zerg Primal Upgrade) to (Killing unit)

[noparse]

the first part of these actions the set level and remove, works just fine.
the second part works the first time but this trigger is supposed to fire every time Damage Bonus reaches 100 it works well the FIRST TIME it fires off. but the second time it fires off the first bottom 4 actions do not fire again.

how do i get the zerg primal Upgrade actions to repeatedly occur? right now they can only be applied to a unit once, but not twice or an infinite number of times and i don't know why.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
How do you know it didnt happen the second time? You know you can not add the same ability twice to a unit.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
no? hrm i thought you could i think ive done it with item abilities? do the abilities have to be under the item category?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
You cant do it with item abilities either. The only exceptions, as far as I know, is Charge Gold / Lumber, Spellbook and Channel since these abilities are designed fore the sole purpose of being used with triggers.
 

jonas

You can change this now in User CP.
Reaction score
66
Here's what we used to do in battleships: add a life ability, level it up, remove it.
The trick was that there's a "bug" with those abilities which prevents level up + removing it from working correctly, so it would remove a different amount than it added.

You'll have to play around with it a little bit to figure out what the bug was, because I forgot whether it was that it always removes the level 1 amount but adds the level 2 amount, or that it always adds the level 1 amount but removes the level 2 amount.

There are some abilities which I recall vaguely you can add multiple times, but those IIRC are only the hero attribute abilities. Not sure though?
 

sunshinex3

You can change this now in User CP.
Reaction score
7
This is what i ended up doing, now i can only utilized my star system up to 11x its current cap
[/noparse]
Trigger:
  • Zerg Primal Bonuses
    • Events
    • Unit - A unit Dies
    • Conditions
    • And - All (Conditions) are true
    • Conditions
    • (Level of Damage Bonus (all units) for (Killing unit)) Equal to 100
    • (Current research level of Primal Evolution (Zerg) for (Owner of (Killing unit))) Equal to 1
    • (Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 10
    • Actions
    • Unit - Set level of Damage Bonus (all units) for (Killing unit) to 1
    • Unit - Set level of Attack Speed Bonus (All Units) for (Killing unit) to 1
    • Unit - Set level of Armor Bonus (All Units) for (Killing unit) to 1
    • Unit - Remove Life Bonus (All Units 10) from (Killing unit)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 1
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade) to (Killing unit)
    • Unit - Add Attack Speed Bonus (Zerg Primal Upgrade) to (Killing unit)
    • Unit - Add Damage Bonus (Zerg Primal Upgrade) to (Killing unit)
    • Unit - Add Armor Bonus (Zerg Primal Upgrade) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 10
    • Then - Actions
    • Unit - Increase level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)
    • Unit - Increase level of Armor Bonus (Zerg Primal Upgrade) for (Killing unit)
    • Unit - Increase level of Attack Speed Bonus (Zerg Primal Upgrade) for (Killing unit)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 2) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 3)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade2) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 3) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 4)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade3) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 4) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 5)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade4) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 5) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 6)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade5) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 6) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 7)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade6) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 7) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 8)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade7) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 8) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 9)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade8) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than or equal to 9) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than 10)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade9) to (Killing unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Less than or equal to 10) and ((Level of Damage Bonus (Zerg Primal Upgrade) for (Killing unit)) Greater than 9)
    • Then - Actions
    • Unit - Add Life Bonus (Zerg Primal Upgrade10) to (Killing unit)
    • Else - Actions
    • Do nothing
    • Else - Actions
    • Do nothing
[/noparse]
 
Last edited:

jonas

You can change this now in User CP.
Reaction score
66
make it table driven, buddy

PS: I think there even are JASS systems that do something like this by cohadar and by Jesus4Lyf. I think one of them is called BONUS. Just look at how they're doing it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top