Updated Attackwave system.
Now it is possible to put group to each unit which is for attackwaves purposes.
Before this version, attackwaves simply went from turn to turn so that turn 1 happens this, turn 2 happens that and turn 3...
This system is still the basis of the attacwaves, but in addition you can now make attackwaves that are named, for example attackwave named "testwave". Then you can choose that either this attackwave is started at some certain time, like on turn 10, or based upon condition of some group not existing anymore.
This creates a possibility that at beginning of level there comes 1 unit attacking. When you kill this unit, there comes two more, and each time you kill one there are coming more and more units against you.
It also in such way that you can choose the condition to be that multiple groups have all been killed. For example "wavegroup1" and "wavegroup2" must both be dead before "finalwave" comes.
This new system also works in such way, that several waves can be attacking at same time. That if "group1" is activated by killing "swordman1group" and "group2" is activared by killing "swordman2group", then if these happen the same turn, both are going to be started on same turn, and if these both have future happenings, like 5 turns later from its start there comes more people, then these events can happen at same time too.
I think attackwaves basis are all there now, and rest to will only be details. Like if there is need, then I can add system like after 16 from "group1" have been killed, then will "group2" attack.
In this current build first swordman appearing belongs to "testgroup" second one appearing belongs to "testgroup2" and "testwave" (which consists of 2 swordman attacking immediatelly, and 1 swordman attacking the next turn from start) wont get started until both these groups (although they both consist og only 1 swordman) "testgroup" and "testgroup2" have first been slain.