Najprościej zrobić to tak:
Mamy grupę, np: 5 osób. Stworzymy skrypt
- Kod: Zaznacz cały
#loop
? !(surfaceIsWater (getpos unit1)) : unit1_out = true
? !(surfaceIsWater (getpos unit2)) : unit2_out = true
? !(surfaceIsWater (getpos unit3)) : unit3_out = true
? !(surfaceIsWater (getpos unit4)) : unit4_out = true
? !(surfaceIsWater (getpos unit5)) : unit5_out = true
? !(unit1_out && unit2_out && unit3_out && unit4_out && unit5_out) : goto "loop"
hint "Wszyscy poza wodą!"
unit1, unit2, unit3 ... - kolejne jednostki
Powinno działać.