room "latex0"
  require_fetish :latex

  tell "This student has some harsh breathing torture."
  tell "Go fetch any latex item.", mode: :pause
  tell "Good. As soon as the timer reaches 0, take a deep breath while smelling the latex and hold your breath afterwards"
  wait 10s, mode: :normal
  tell "Perfect, now stroke.", mode: :instant
  stroke_for 20s..40s, :medium
  tell "Take another quick breath and smell the latex", mode: :instant
  wait 5s, mode: :normal
  tell "Back to stroking.", mode: :instant
  stroke_for 5s..15s, :fast

  image "latex0b"
  say "Ha... Ha.. Ha.. Finally... Free..."
end

room "latex1"
  require_fetish :latex

  say "So you're into latex? How do you like my latex school uniform? I wear it everyday."

  if current_dress == "none"
    if fetish_cd
      say "Why don't you put on some latex clothing? If you have a girls school uniform or anything girly. Your dick should stay accessible."
    else
      say "Why don't you dress up some latex clothing? Keep in mind that your dick should stay accessible."
    end

    say "Keep dressed up for the rest of the game, if told otherwise or if you have any tasks which cannot be done while in your dress."
    dressup "latex"
  end

  say "Edge #{edge:1} time#{s_edge:1} for the amazing feeling of latex"
  edge 1
end

room "latex2"
  require_fetish :latex

  say "Look at our schools pitiful little dog here... She didn't want to listen so a vibrator has been attached to her."

  if toy_vibrator
    say "Hold your vibrator against your penis at medium strength and click 'Ready'. Try not to edge."
    fast_button "~ARE READY"
    wait 15s..30s
    say "Great! You can stop now."
  else
    say "Stroke while thinking about being in her position right now."
    stroke_for 10s..20s, :very_fast
  end

  flash "latex2b"
  say "Aww... Looks like she just got used to her role in here. Maybe just another four hours for her..."
end

room "latex3"
  require_fetish :latex
  require_toy :penis_plug

  if has_encounter(:latex3)
    say "Oh, you really have to love being teased with a plug down your penis."

    if fetish_cbt
      say "Hit your penis #{hit:4} time#{s_hit:4} for me."
    else
      say "Stroke for me with a tight grip."
      stroke_for 10s, :very_fast
    end
  else
    say "Welcome to the medical class room."
    say "I just was relaxing a bit, but I guess a doctor must always be available."
    
    say "How about this: Put your penis plug into your dick for me."
    fast_button "~ARE DONE"
    say "Great. Now stroke for me with a tight grip."
    stroke_for 10s..20s, :slow
    stroke_for 5s, :very_fast
    stroke_for 5s, :ultra_fast
    say "Perfect! Keep the penis plug inside until told otherwise. I'm back in a few rooms, I promise."

    encounter :latex3, label: "Penis Plug", in_steps: 3..6
      image "latex3"
      say "I'm back, just like I promised"
      say "You know... You can put out the Penis Plug right now. Don't forget to clean it. Or keep it inside, do whatever you like."
    end
  end
end

room "latex4"
  require_fetish :latex

  say "What a good dog... isn't she? Licking her masters feet without hesitation. Well she would if she could..."
  say "I guess you need some practice too."
  if toy_latex_socks
    say "Lay down your latex sock on the floor and kneel down in front of it"
    say "Now stroke to the beat while licking the sock."
  else
    say "Lay down any latex item on the floor and kneel down in front of it"
    say "Now stroke to the beat while licking the item."
  end
  stroke_for 15s..30s, :medium
  say "EDGE #{edge:1} time#{s_edge:1}.", mode: :instant
  edge 1

  say "You're also a good dog. Maybe I should adopt you?"
end

room "latex5"
  require_fetish :latex

  say "Hiho~ I just put on my latex catsuit, nyaa~"
  say "Stroke to my beautiful catsuit and think about the great feeling of rubber on your skin"
  stroke_for 15s..40s, :medium
end

room "latex6"
  require_fetish :latex

  say "Hello little boy... We're enjoying our school days in our beatiful latex catsuit even during summer days..."

  if current_dress == "none"
    if fetish_cd
      say "Why don't you put on some latex clothing? If you have a girls school uniform or anything girly. Your dick should stay accessible."
    else
      say "Why don't you dress up some latex clothing? Keep in mind that your dick should stay accessible."
    end

    say "Keep dressed up for the rest of the game, if told otherwise or if you have any tasks which cannot be done while in your dress."
    dressup "latex"
  end

  say "It's so hot when it's all slippery in our sweaty dresses.. Close your rooms door and set the heating to the highest level."
  
  say "Stroke for us while you run your hand over your body and get sweaty too~"

  stroke_for 30s..60s, :medium
end

room "latex7"
  require_fetish :latex

  say "Oh no.. I got another 'D' in 'FemDom History' class..."
  say "But it's really not my fault. I always get aroused in my latex schooldress."

  say "Talking about being aroused. Please stroke for me~"
  stroke_for 10s..15s, :fast
end

room "latex8"
  require_fetish :latex

  say "Welcome to my classroom. I'm the 'Fetishes' teacher of this school."

  if current_dress == "none"
    if fetish_cd
      say "As a teacher of this class I can't have you running around like this. Dress up in some latex clothes you own! If you have a girls school uniform or anything girly. Your dick should stay accessible."
    else
      say "As a teacher of this class I can't have you running around like this. Dress up in some latex clothes you own! Keep in mind that your dick should stay accessible."
    end

    say "Keep dressed up for the rest of the game, if told otherwise or if you have any tasks which cannot be done while in your dress."
    dressup "latex"
  end

  if current_dress == "latex"
    say "Stroke to me with your eyes closed and concentrate on the latex touching your body."
  else
    say "Stroke to me with your eyes closed and thinking about how the latex would feel all over your body."
  end

  stroke_for 30s..60s, :slow
end

room "latex9"
  require_fetish :latex
  require_fetish :pain

  say "What? You think I'm cute??! How dare you to call me cute?"

  if toy_whip
    say "Use your whip to whip your back to the beat! Make it painful."
  else
    if toy_wood_spoon
      say "Use your wooden spoon to hit your inner tights to the beat! Make it painful and try to keep hitting the same spot."
    else
      say "Use your hand to spank your ass! Make it painful and try to keep hitting the same spot."
    end
  end

  start_stroke :slow
  wait 30s..60s
  stop_stroke

  say "Next time you come here you take care about who you call <cute>"
end

room "latex10"
  require_fetish :latex
  require_fetish :pain

  tell "This little dog didn't want to obey, that's why she now is bound here and standing on her tiptoes."
  tell "Want to know what's the punishment for not obeying commands?"
  goto_page "latex10-loop"
end

page "latex10-loop"
  tell "Well... Stand up and keep on your tiptoes until told otherwise", mode: :instant
  fast_button "~ARE STANDING ON YOUR TIPTOES"
  tell "Great! Keep on your tiptoes and hit your balls to the beat.", mode: :instant
  hit_for 10s..20s, :slow
  tell "Harder.", mode: :instant
  hit_for 10s..20s, :slow
  tell "Even HARDER.", mode: :instant
  hit_for 5s..10s, :slow

  tell "Good! You may stop now"
  tell "Did you stand on your tiptoes all the time?"
  choices
    choice "Yes", color: "#8bc34a"
      tell "Great! Then move on."
      goto_page "next-room"
    end
    choice "No", color: "#d81b60"
      tell "I see.. You're also one of those not obeying any commands?"
      tell "Well.. Let's try again."
      goto_page "latex10-loop"
    end
  end
end

room "latex11"
  require_fetish :latex

  say "I love it! It's all slippery and wet! Use some lube and smear it all across your body! If you don't have any lube, use your saliva."
end

room "latex12"
  require_fetish :latex
  require_toy :condom
  require_toy :vibrator
  
  say "Hahahaa.. Look who can't move! Put a condom over your dick and slip your vibrator inside the condom."
  say "Now enable it on the lowest power and edge this way #{edge:1} time#{s_edge:1}."
  edge 1
end

boolean latex13_goal: 0
room "latex13"
  require_fetish :latex
  require_fetish :cbt

  if has_encounter(:latex13)
    say "I see, you are still enjoying your game with me?"
  else
    say "Hmmm? You love it when girls torture you? Well there is no way I could let you say 'No' to this."
    if toy_latex_glove
      say "First of all, put on your latex glove."
    end
    say "Pull your foreskin back as far as you can. I want those tip of your dick free! Take your time for it.", mode: :instant
    fast_button "~ARE DONE"
    say "Great. Now lube your hand and stroke only the tip of your dick."
    hit_for 20s..30s, :medium
    say "Wonderful! Now palm your dick, keep your hand always lubed."
    hit_for 20s..30s, :medium

    say "From now on, I want you to keep your dick always lubed very well and keep your foreskin always pulled back! When stroking, keep stroking from top to bottom and don't forget to include the tip of your dick."

    interrupt :latex13, each_steps: 2
      image "latex13b"
      say "Palm your dick for me HARD."
      stroke_for 15s, :medium
    end

    encounter :latex13, label: "Dick palming", in_steps: 12..18
      stop_interrupt :latex13

      image "latex13"
      say "Ahh! I loved it! You know what? You can now resume without your foreskin pulled back and without lubing your dick for me... I'm done with you! However, you can decide to keep it pulled back if you want to, and I'll promise that a few nice girls will wait for you at the end of the game if you always keep it pulled back and do full strokes."
      choices
        choice "Keep pulled back"
          say "Great choice! You won't regret it! But don't forget to keep it well lubed all the time."
          latex13_goal = 1
        end
        choice "Resume normal"
          say "As you wish."
        end
      end
    end
  end

end

boolean latex14: 0
room "latex14", club: 1
  require_fetish :latex
  require_fetish :complex

  if latex14 == 1
    say "Oh, welcome back! I'm now sure... I guess she wants a break or something? Well, I'm still a human, so you might have a break to! Resume as soon as you want to."
  else
    latex14 = 1
    say "Isn't it a beautiful scenery? This sad girl, being scared of what's coming up next. Unable to escape, fully covered by a tight second skin?"
    say "But she seems to be bored, doesn't she? Let's help her a little bit about that."
    image :latex14b
    say "Bzzzz!! What a funny sound! You doesn't really seem to enjoy it? But she will very soon! Let's add another toy."
    image :latex14c
    say "You know... She should really try not to have too many orgasms or she might lack of air."
    
    say "Now as she is... well.. sleeping. Let's move on to you."
    say "I want you to enjoy the same feeling as she is! This is how it's being played."
    if toy_vibrator
      say "As soon as told so, you'll take your vibrator and attach it to your dick - I don't care how... Tape, Condom, whatever! As soon as you click on 'Start' you'll close your eyes."
      say "You'll keep the vibrator remote control always in your hand. As soon as you click on start a stroking sound will be able to hear. Start the vibrator on medium power. You can ignore the sound during the game, but as soon as the sound stops you can open your eyes again."
      say "You are not allowed to edge, so always when you get close to an edge, you may take a break and turn off the vibrator. However, you'll have to hold your breath as long as you take a break."
    else
      say "As soon as told so you will close your eyes."
      say "You'll keep stroking to the beat until the sound stops. As soon as it stop you can open your eyes again again."
      say "You are not allowed to edge, so always when you get close to an edge, you may take a break from stroking. However, you'll have to hold your breath as long as you take a break."
    end

    say "Count how many times you stopped during the game! Simply try not to edge"
    image :latex14d
    say "Hahaha! Sleeping time for you two!!"
    say "Close your eyes now, as soon as you click here the game will start.", mode: :pause

    start_stroke :medium
    wait 5m
    stop_stroke
    remove_button :latex14

    say "Good! you did it."
    image :latex14e
    say "Awww.. She is sweating all over her body... Looks like it was a long night for her..."
    goto_page "latex14-resume"
  end
end

page "latex14-resume"
  prompt_number :tmp_string, "So.. How many times did you stop?"
  if tmp_string == 0
    say "Wow!! That's really great! You really have some self control! Let me give you a present! I add an 'Safe Pause' for you. Click it if you need a short break from the game."
    create_button :latex14, "Safe Pause"
      goto_page "latex14-pause"
    end
  elsif tmp_string < 6
    say "I guess that's okay! Hope you enjoyed the game! Bye."
  else
    if fetish_cbt && toy_clamps
      say "Hmmm. That's quite a lot. You know what.. Attach #{hit:tmp_string} clamps to your balls and keep them until something requires you to remove them."
    else
      say "Hmmm. That's quite a lot... Edge #{edge:tmp_string} times for me."
      edge tmp_string
    end
  end
  end_of_room
end

page "latex14-pause"
  image :latex14d
  say "Oh hi! Please be quiet... She is trying to sleep. Take a break as long as you want to."
  goto_page "$mazeResumeAfterPause()"
end

room "latex15"
  require_fetish :latex

  say "I don't want anymore... Please let me out."
  say "I haven't been allowed to put this dress off since weeks... It feels so dirty and sticky. I want to feel how fresh air felt on my skin.."
  say "At least stroke to me and think about you being in my situation"
  stroke_for 40s..50s, :slow
end

boolean latex16: 0
room "latex16"
  require_fetish :latex

  say "Hi sweety! We love to wear this skinny, naughty latex suits whenever we can."
  say "Let's make a deal. If you don't manage to get a happy end today, you'll have to wear as much latex as you can under your normal clothes the next time when you go shopping! Isn't that a great idea?"
  say "Now stroke to our skinny latex and feel the tight rubber all across your body."
  latex16 = 1
  stroke_for 20s, :fast
end

page "latex16-fail"
  image "latex16"

  latex16 = 0
  say "Hi! Remember us?"
  say "More important... Do you remember our deal? You lost, so next time you go shopping you'll have to wear as much latex as possible under your normal clothes."
  say "Good luck not getting catched."

  goto_page "fail-end"
end

room "latex17"
  require_fetish :latex

  say "Hihihi.. So you are into latex? Do you own a mask which still allows you to breath, eat and see?"
  choices
    choice "Yes"
      say "Perfect! Go fetch it and put the inside of it over your dick.", mode: :instant
      fast_button "~ARE DONE"
      say "Great. Stroke for me."
      stroke_for 30s..50s, :medium
      say "Nice.. Now edge for me #{edge:1} time#{s_edge:1}.", mode: :instant
      edge 1
      say "Aaand again.", mode: :instant
      edge 1

      say "Good! Now spit once into the mask, mix everything very well and put that mask over your face! Keep it there until there is any task which requires you to take it off."
    end
    choice "No"
      say "I see.. Well then just stroke for me."
      stroke_for 30s, :medium
    end
  end
end

room "latex18"
  require_fetish :latex

  say "Hahh... Hahh.. It's even for me hard to breath..."
  say "Press your hand in front of your mouth and nose in a way that it's really tough to breath. Use the other hand to stroke when you are ready.", mode: :instant
  fast_button "~ARE READY TO STROKE"
  stroke_for 20s, :medium
  stroke_for 10s, :fast
  stroke_for 5s, :very_fast
  say "Great! You may move on!"
end