Multiple Switches to complete an event

● ARCHIVED · READ-ONLY
Started by angryargonian 5 posts View original ↗
  1. Hi! I'm making my first game and I can't seem to solve a particular problem I'm having. So in this part of my game, ( titled Remembrance), you have to help a resistance group by convincing five guards scattered around the city to join your cause. After speaking with each individual guard, they travel to the resistance headquarters. But I don't know how to make my resistance leader npc realize that all the guards our there without making a a conditional branch for every single different situation that you can choose. Ex. guard01, guard02, guard03, guard04, guard05, or guard02, guard03, guard01, guard05, guard04, etc. I would really appreciate any help that you can offer. Thanks. 
  2. angryargonian said:
    Hi! I'm making my first game and I can't seem to solve a particular problem I'm having. So in this part of my game, ( titled Remembrance), you have to help a resistance group by convincing five guards scattered around the city to join your cause. After speaking with each individual guard, they travel to the resistance headquarters. But I don't know how to make my resistance leader npc realize that all the guards our there without making a a conditional branch for every single different situation that you can choose. Ex. guard01, guard02, guard03, guard04, guard05, or guard02, guard03, guard01, guard05, guard04, etc. I would really appreciate any help that you can offer. Thanks. 
    Did you try to use variables as well? Like initially a variable counting the number of guards is 0, then it'll be increased by 1 when a guard is "out there" and so when all the guards are "out there" the variable should be equal to the number of guards. After that, check if the variable is indeed equal to the number of guards to see if all the guards are indeed "out there" :)
  3. You already asked this question, and I already answered you yesterday. If my suggestion didn't work (which was pretty much the same as the suggestion above), say WHY it didn't work and what happened instead.


    Please do not post the same question multiple times in the forum.
  4. Sorry I won't again. Thank you both for responding :) It seems to have worked!
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.