Lacks Multiple Tokens

Make Forums Get help Lacks Multiple Tokens

This topic contains 1 reply, has 2 voices, and was last updated by  Comprehensible 4 months ago. This post has been viewed 152 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4371

    AwesomeGirlQuinn
    Participant

    So, is there a way to make like a list of tokens needed to do something? Example, I’m working on a bit where you have to rescue your friends before continuing to the next area. It can be done in any order, so I can’t just add a teleport at the last one.

     

    What I want to do is have a list of tokens you need to continue. So, you’d need to have TokenA, TokenB, and TokenC to move on.

    #4372

    Comprehensible
    Moderator

    Yes, there is!

    Let’s say we have token A, token B, and token C. While we can’t reliably give the player feedback for what token they need, we can block them out if they don’t have one of the three. The code goes like this:

     

    if hero lacks token “A”

    (four spaces) Guard says “I can’t let you pass, you don’t have token A!”

    else

    (four spaces) if hero lacks token “B”

    (eight spaces) Guard says “I can’t let you pass, you don’t have token B!”

    (four spaces) else

    (eight spaces) if hero lacks token “C”

    (twelve spaces) Guard says “I can’t let you pass, you don’t have token B!”

    (eight spaces) else

    (Twelve spaces) Guard says “You have all the tokens! I can let you pass!”

     

    I hope that helps, and feel free to ask if you need clarification. Good luck! 😀

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.