• 0

    posted a message on Checking all values in an array

    Hello all.

    I'm going to explain the problem I'm trying to solve, my solution, and the problem I've run into with it. However, if there is a better way to solve the problem in the first place, then by all means, please let me know.

    I'm making a map that has a hero/character selector. I want to know when all players have selected a hero. I've created a global var that is an array of booleans, and the trigger that sets the item to 'true' works fine.

    Where I'm having the issue is in the next trigger, in that I want play to begin once everyone has selected. Do I have to set the Condition section to check each cell manually, or is there a shorter/better way to do it? I also want to avoid a manual check, as it will start leading to some kludgy situations if I don't have the max amount of players.

    If the correct solution is Galaxy scripting, that's fine. Not afraid to jump into that, (I have a fair amount of programming experience) though I haven't touched it yet.

    Thanks. :)

    Posted in: Triggers
  • To post a comment, please or register a new account.