Welcome Forums Get help Multiple Tokens Reply To: Multiple Tokens

#1310
mystify
Participant
if hero has token "Dynamite"
    hero says "I have to many"
else
    if hero has token "Ax"
        hero says "I have to many"
    else
        if hero lacks token "Sword"
            hero says "I don't have three"
        else
            if hero lacks token "Gun"
                hero says "I don't have three"
            else
                if lacks token "Pen"
                    hero says "I don't have three"
                else
                    hero says "I have three"

So this is what the code looks like for those kind of results. I’m planning to play around with it more but this gives some more opportunities to others to have a quest of a sort of search and find game. Or whatever.
(=´∇`=)

  • This reply was modified 7 years, 2 months ago by mystify.