Topic: soldiers (heroes) on a warship
1 —
3 of
3
Posts
|
kaputtnik Topic Opener |
Posted at:
2024-10-10, 17:35 UTC+2.0
I want to write a win condition which counts the number of heroes on a warship. But it seems there is no way to achieve this. For a ship i can use e.g. ship:get_workers("empire_soldier") to get the amount of soldiers on this ship. But i can't find a way to check the levels of the soldiers. If i use ship:get_workers("") i get a table of workers, but it seems this table is empty (at least for a warship) and this way it is also not possible to check the levels of soldiers. Do i overlook something again?
Top
Quote
|
|
Nordfriese |
Posted at:
2024-10-11, 11:00 UTC+2.0
This works for me:
Could you provide your code?
Top
Quote
|
|
kaputtnik Topic Opener |
Posted at:
2024-10-11, 11:41 UTC+2.0
Oh yeah, sorry, my fault. I just forgot to rename a variable in every place.
Top
Quote
|
1 —
3 of
3
Posts

