I need to wait for someone to show up before moving on. Also is there a way to wait until 2 or more specified people are in your group?
Thanks
I need to wait for someone to show up before moving on. Also is there a way to wait until 2 or more specified people are in your group?
Thanks
Code:group = Array.new while line = get if line =~ /(.*) joins your group./ or line =~ /You clasp (.*)\'s hand/ or line =~ /You add (.*) to your group./ group.push($1) unless group.include?($1) if group.include?("PERSON A") and group.include?("PERSON B") echo "DO STUFF!" end end end