Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
Essentially you're looking for dynamic text fields, and I haven't seen any evidence of this. For example you can't use a wire into a Text Display containing the text you want it to display, nor can you perform operations on fields like concatenation e.g. "Box"&{SpawnNum}. You'd use this to name (and find) tags/variables which is what would solve your problem.
A hacky workaround might be to use a selector instead, that looks for collision with each PlayerPossession state. Then have a generic tag for your outputs (NoPlayer, Player1,Player2) and use a Scene-sized Zone to count how many of those tags exist (I'm sure there's an output in there for that). Then you can wire that to a single variable in your world logic, and now you have each cube managing its state by itself and the game tracking how many of each are in each state.