Yes, I'm aware of this. So what you would like is to check the condition for each unit, change the unit's party if a condition is met and then end; the function. If you put a Suicide(); before the last end; then it should work. I can not test this right now.
"Never interrupt your enemy when he is making a mistake.” Napoléon Bonaparte.
If condition for unit of ID = "i" is met then it will assign to a value 1 and it will DisplayTrace(). Because RunScript("Provjera",1000) executes function every second now it will check condition again but this time it will not meet second condition a~=1 so it will not execute comamnd block DisplayTrace() again.
This concept can be used to test same condition for any number of units and if the condition is met it will execute following command only once (or maybe more times if u want).
[HgW]Neutro: Hello click on his name and on his profile page is a button "send message"
Mar 15, 2021 18:03:20 GMT 1
Grot: Can't PM until he makes few posts first
Mar 15, 2021 18:47:25 GMT 1
Claonadh: Correct Grot, Can someone PM me then instead
Mar 15, 2021 20:32:59 GMT 1
Claonadh: Hi, Can [HgW]Neutro and danzig70 Pm me please, Thanks
Mar 16, 2021 12:08:57 GMT 1
Squire James: Grot, little tip. Your project is precisely that. Your project. You shouldn't let anyone else push you around and dictate to you how it should be just because they don't like it. If they have a problem with it, that's precisely that. THEIR PROBLEM.
Mar 23, 2021 17:14:36 GMT 1
kpacc: Who want to play Offikrieg welcome to GameRanger!
Apr 2, 2021 15:56:54 GMT 1
Mascarenhas2: Hi old and new fellows. After many years, I decided to return into playing BK, only to discover that this is still the best rel-time tac-str game ever. And this forum has been - and I´m so glad to see that many new stuff has been created.
Apr 6, 2021 16:42:59 GMT 1
Mascarenhas2: This forum is a treasure, and I hope it keeps as is. Cheers!
Apr 6, 2021 16:44:08 GMT 1