I don´t know how to approach this problem. I find it very hard to solve in the data edtior, so perhaps anyone has a good idea regarding triggers.
I have created an ability that gives a building a buff. The buff makes a building able to produce 2 units at the same time. Right now, the buff only lasts X seconds. When the buff expires, 1 of the produced units are canceled, if they do not finish in time. This makes the buff worthless : /
Is there any way to make the buff last until the produced unit is finished, no matther how long time it takes?
Example:
I queue two siege tanks in the factory. 1 starts to be produced immediately. I cast the buff on the factory, which makes 1 more siege tank start producing. The buff lasts until the second siege tank is finished. Then the buff expires.
All suggestions how to get this to work is welcome!
what i can think of is to have the buff last forever (a -1 duration) but have a validator that checks to see if the building produced the second unit then removes the buff when it sees that the second unit is made.
what i can think of is to have the buff last forever (a -1 duration) but have a validator that checks to see if the building produced the second unit then removes the buff when it sees that the second unit is made.
This sounds very good!
Anyone wanna give me some guidance on how to make this?
I suck at validators :(
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I don´t know how to approach this problem. I find it very hard to solve in the data edtior, so perhaps anyone has a good idea regarding triggers.
I have created an ability that gives a building a buff. The buff makes a building able to produce 2 units at the same time. Right now, the buff only lasts X seconds. When the buff expires, 1 of the produced units are canceled, if they do not finish in time. This makes the buff worthless : /
Is there any way to make the buff last until the produced unit is finished, no matther how long time it takes?
Example:
I queue two siege tanks in the factory. 1 starts to be produced immediately. I cast the buff on the factory, which makes 1 more siege tank start producing. The buff lasts until the second siege tank is finished. Then the buff expires.
All suggestions how to get this to work is welcome!
what i can think of is to have the buff last forever (a -1 duration) but have a validator that checks to see if the building produced the second unit then removes the buff when it sees that the second unit is made.
This sounds very good!
Anyone wanna give me some guidance on how to make this?
I suck at validators :(