I am trying to make my first map and I am going to make an special forces map cuz I really love them!
But I have a little problem here with a trigger and Im new to this but I am trying my best.
Here I am trying to make the trigger do following:
When a unit is killed, check if the unit is owned by player 15 and count every small greenling killed up to 10
then spawn a boss at a point that is issued the order to attack another point. Then I want the trigger to start over and count
greenling to 10 before next boss spawn.
The last part where it says (Last created unit), there I have tried (Created unit) but that didnt work.
Hope Im clear about what I want to achieve.
The picture shows how far I got and now Im out of thoughts.
If you know what I should do please let me know, would really appreciate it!
Hello everyone!
I am trying to make my first map and I am going to make an special forces map cuz I really love them! But I have a little problem here with a trigger and Im new to this but I am trying my best. Here I am trying to make the trigger do following:
When a unit is killed, check if the unit is owned by player 15 and count every small greenling killed up to 10 then spawn a boss at a point that is issued the order to attack another point. Then I want the trigger to start over and count greenling to 10 before next boss spawn.
The last part where it says (Last created unit), there I have tried (Created unit) but that didnt work. Hope Im clear about what I want to achieve. The picture shows how far I got and now Im out of thoughts. If you know what I should do please let me know, would really appreciate it!
The variable needs to be a global variable (= variable where the trigger names are [LEFT SIDE]).
Local variables are within the trigger and functions and aren't saved between trigger starts.
With a global variable to track the kill count, your code will work as intended. ;)
Thank you alot Sir! Now it works! ^^