page "takagi"
  room_init "hestia0", goal: 1

  say "Hi! It's been a long time since a boy came into my room! I'm really really happy to meet you."
  say "Shall we play a little bit together? I'd really be happy if you have some time for me."
  say "My name is Hestia, but some people also call me..."

  image :hestia1
  demon_say "Stroking Demon Hestia"

  image :hestia2
  say "Even though I'm actually a goddess, but who said a goddess can't be a demon? Sooo. Shall we start then?"
  say "First of all... Stroke until you are close to an edge, but don't edge yet.", mode: :instant
  start_stroke :medium
  tmp_string = current_time
  fast_button "~ARE CLOSE TO AN EDGE"
  tmp_string = current_time - tmp_string
  stop_stroke

  image :hestia3
  say "Well... Good, that took you #{tmp_string} seconds! So let's take #{tmp_string} seconds break."
  wait tmp_string

  say "You know... It's not like I don't want you to cum, I just love watching you to stroke more than anything else."
  say "So let's start with some simple stroking. You should be used to, since you made it to this room?"

  image :hestia4
  stroke_for 45s, :slow
  say "Ok... How about stroking a little bit faster?", mode: :instant
  stroke_for 15s, :medium
  image :hestia4b
  say "You know, I'll take off my panties if you stroke even faster for me.", mode: :instant
  stroke_for 15s, :fast
  say "No, I mean really fast.", mode: :instant
  stroke_for 15s, :very_fast
  image :hestia4c
  say "Ooops, sorry, I took them off, but I'm a little bit too shy to show it to you..."

  say "Let's have a small break...", mode: :instant
  wait 15s

  image :hestia5
  say "Soo... Why don't we try a little game? You try to get CLOSE to an edge fast enough and I decide whether it was okay or not. Do not really edge, I still prefer stroking..."
  goto_page "takagi2"
end

page "takagi2"
  image :hestia5
  say "So, stroke close to an edge as fast as you can to the beat, however do not edge.", mode: :instant
  start_stroke :medium
  tmp_string = current_time
  fast_button "~ARE CLOSE TO AN EDGE"
  tmp_string = current_time - tmp_string
  stop_stroke

  if tmp_string > 25
    image :hestia5b
    say "Well.. I don't think that was fast enought. Let's repeat! You should really try harder."
    goto_page "takagi2"
  end

  image :hestia6
  say "Ok... I guess you deserve a little reward here! Sorry... I took the time to put my panties back on."
  say "Let's have a short break", mode: :instant
  wait 30s

  image :hestia7
  say "Let's get back to some stroking! Maybe this time I'll show you more?"
  stroke_for 45s, :slow
  say "You're way too slow...", mode: :instant
  stroke_for 20s, :medium
  image :hestia7b
  say "Do you think I'll show you more this time? I promise to take my panties off if you go faster.", mode: :instant
  stroke_for 15s, :fast
  say "That's not fast enough.", mode: :instant
  stroke_for 15s, :very_fast
  image :hestia7c
  say "Hmmm.. Noo! Maybe I don't think you deserved it now..."
  
  image :hestia8
  say "You should know... I'm not that bad at all. It's just so hot to see you stroking."
  say "But I'll give you another short break.", mode: :instant
  wait 30s
  
  image :hestia8c
  say "Okay... To show you that I'm a nice girl, I'll give you a chance to prove yourself. If you win the following game I'll let you cum right here and right now."
  say "The game is easy: You do full strokes from your base to the very top to the beat. If you come CLOSE to an edge, you have to click on 'Close to Edge'. If you manage to stroke long enough without getting close to an edge, I'll let you cum."
  say "Maybe I'm too nice to you? Well.. Let's start."

  button "Start game"

  if fetish_feet
    image :hestia9
    say "Stroke to my hot feet! Think about the feeling of them on your face.", mode: :instant
  else
    image :hestia9c
    say "I'll give you this great view while stroking.", mode: :instant
  end

  tmp_string = current_time
  create_timer :takagi2, 5m
    stop_stroke
    goto_page "takagi2-faster"
  end

  start_stroke :medium
  fast_button "~ARE CLOSE TO AN EDGE"
  stop_stroke
  remove_timer :takagi2
  goto_page "takagi3"
end

page "takagi2-faster"
  say "I'm getting tired! Stroke faster."
  start_stroke :fast

  create_timer :takagi2b, 5m
    stop_stroke
    goto_page "takagi2-insane"
  end

  fast_button "~ARE CLOSE TO AN EDGE"
  remove_timer :takagi2b
  stop_stroke
  goto_page "takagi3"
end

page "takagi2-insane"
  say "Are you even stroking? Stroke as fast as you can."
  start_stroke :insane

  create_timer :takagi2c, 24h
    stop_stroke
    goto_page "takagi3"
  end

  fast_button "~ARE CLOSE TO AN EDGE"
  remove_timer :takagi2c
  stop_stroke
  goto_page "takagi3"
end

page "takagi3"
  image :hestia10
  say "Hihihi! I knew you couldn't do it."
  say "Well... I didn't tell you before how many hours you'd have to stroke? Gnihihihi."
  
  
  say "Okay. I know, that wasn't fair! Let's try it again, but I think about a better time limit for this time! So start stroking again and don't get close to an EDGE."

  image :hestia11
  say "Oh, and I give you some better motivation this time."

  button "Start Game"
  start_stroke :fast
  say "Ooops... I forget to tell you that you'll have to stroke faster this time? Hihihi...", mode: :instant

  create_timer :takagi3, 5m
    stop_stroke
    goto_page "takagi3-insane"
  end
  fast_button "~ARE CLOSE TO AN EDGE"
  remove_timer :takagi3
  stop_stroke
  goto_page "takagi4"
end

page "takagi3-insane"
  say "Aaaahh! Why can you stroke so long? Stroke as fast as you can."
  start_stroke :insane

  create_timer :takagi3c, 24h
    stop_stroke
    goto_page "takagi4"
  end

  fast_button "~ARE CLOSE TO AN EDGE"
  remove_timer :takagi3c
  stop_stroke
  goto_page "takagi4"
end

page "takagi4"
  image :hestia12
  say "Oh! I guess you lose then... Hehe."
  
  say "Well... Let's end our game for the day. Just one last game."
  say "Have a short break first.", mode: :instant
  wait 20s

  if fetish_feet
    image :hestia13b
  else
    image :hestia13
  end
  say "Now stroke as fast as you can CLOSE to an edge. Do not edge.", mode: :instant
  start_stroke :insane
  fast_button "~ARE CLOSE TO AN EDGE"
  stop_stroke

  say "Short break...", mode: :instant
  wait 10s
  say "And again.", mode: :instant

  start_stroke :insane
  fast_button "~ARE CLOSE TO AN EDGE"
  stop_stroke

  say "Another break", mode: :instant
  wait 10s
  say "And a last time.", mode: :instant
  image :hestia13c

  start_stroke :insane
  fast_button "~ARE CLOSE TO AN EDGE"
  stop_stroke

  image :hestia14
  say "Ahhh! That was funny! You couldn’t even edge once during all of that. Hehehe..."
  say "Well... I guess I'll take a break now... If you want to you might have a break of up to ten minutes now and move on then! Bye."
  button "Resume Game"

  beat "takagi"
  goto_page "takagi-beat"
end

page "takagi-beat"
  room_init "hestia0", goal_beat: 1
  image "hestia15"

  tell "Hestia seems a little bit out of power after teasing you"

  if is_maze_mode
    tell "Do you want to catch Hestia now?"

    choices
      choice "Yes"
      end
      choice "No, I'm back later"
        tell "Okay.. Come back later than"
        goto_page "next-room"
      end
    end
  else
    tell "You can catch Hestia now."
    button "Catch."
  end

  image "hestia16"
  tell "YOU CAUGHT THE STROKING DEMON HESTIA"
  tell "However... Her inner power is still strong. It seems like she affects game values related to stroking duration from now on."
  catch "takagi"
  goto_page "next-room"
end

page "takagi-catch"
  room_init "hestia0", goal_catch: 1
  image "empty"
  tell "The room is empty."
  goto_page "next-room"
end

page "takagi-finish"
  image "hestia49"
  say "Sooo.. You really want me to finish you? What a great compliment! Thank you.."
  say "I'm really happy that we are allowed to finish you now. So let's play some games! I'll let you cum if you win all games."

  image "hestia48"
  say "Let's try if you can win this! Play with your nipples until you edge #{edge:1} time#{s_edge:1}. Do not touch your dick."
  choices
    choice "Edged"
      image "hestia48b"
      say "Great! I knew you could do it."
    end
    choice "Can't"
      goto_page "takagi-cum-lose"
    end
  end

  say "Let's have a quick break.", mode: :instant
  wait 10s

  image "hestia51"
  say "Now I want you to stroke your dick."
  stroke_for 10s, :medium
  stroke_for 10s, :fast
  stroke_for 5s, :insane

  say "Well done! Now EDGE as fast as you can."
  edge 1

  goto_page "takagi-finish-loop"
end

page "takagi-finish-edge"
  image :hestia47
  say "Hahaha! I knew you can't beat my game! You always lose! Hahaha. I give you 20 seconds break, until you have to resume. You can always give up.", mode: :instant
  wait 20s
  goto_page "takagi-finish-loop"
end

page "takagi-finish-loop"
  image :hestia46
  say "You know the game from earlier. But this time I'll give you a real chance! If you manage to stroke for one minute without edging I'll permit you to cum afterwards.", mode: :instant
  button "Start test"

  create_button :takagifinishfail, "Edged"
    goto_page "takagi-finish-edge"
  end

  create_button :takagifinishgiveup, "Give up"
    goto_page "takagi-cum-lose"
  end

  remove_button :stop

  create_button :takagifinishcum, "Cummed"
    goto_page "takagi-cum-lose"
  end

  if fetish_feet
    if fetish_cd
      image :hestia45
      say "Stroke to my cum dripping feet. Lick them in your imagination.", mode: :instant
    else
      image :hestia44
      say "Stroke to my feet! Lick them in your imagination.", mode: :instant
    end
  else
    image :hestia42
    say "Stroke to my pussy! Fuck it in your imagination.", mode: :instant
  end

  stroke_for 20s, :medium
  stroke_for 20s, :fast
  stroke_for 10s, :very_fast
  stroke_for 5s, :ultra_fast
  stroke_for 5s, :insane

  remove_button :takagifinishcum
  remove_button :takagifinishfail
  remove_button :takagifinishgiveup

  image :hestia41
  say "Hmmm...? You really did it?"
  say "Well.. I guess you really won. So I promised you to reward you and let you cum..."

  image :hestia40
  say "Hmm.. Okay.. Let's have a break first", mode: :instant
  wait 60s

  image :hestia39
  say "I didn't decide earlier HOW I let you cum, didn't I?"
  say "Stroke yourself to an edge and prepare to hold it... But do it to the beat."

  create_button :takagifinishgiveup, "Give up"
    goto_page "takagi-cum-lose"
  end

  image :hestia38
  start_stroke :slow
  edge 1
  stop_stroke

  image :hestia37
  say "Now hold it for me.", mode: :instant
  wait 20s..30s

  say "Now CUM!!!", mode: :instant
  flash :hestia36
  button "Cummed"
  remove_button :takagifinishgiveup

  image :hestia35
  say "Wow! That was awesome! I didn't expect you to win this game but I hoped for it so I can also finish me."
  say "Thank you for the experience! I'd really love to play with you again someday so please join me for another time."

  button "Finish game"
  goto_page "end"
end

page "takagi-cum-lose"
  stop_stroke
  image "hestia50"

  say "Hmmm...? I knew you couldn't win my games! You never do..."
  say "I guess you still need a lot of practice, so let's play another game."
  
  if toy_chasity
    say "I want you to put on your chasity device now."
  end

  image "hestia56"
  say "From now on you'll be denied to touch your dick for one full week."
  if toy_chasity
    say "However, you'll have to open up your chasity device every morning and every evening before getting to sleep."
  else
    say "However, you'll have to touch your dick every morning and every evening before getting to sleep."
  end
  say "You are going to stroke your dick to a metronome of 90 BPM for 2 minutes. However, everytime you edge you'll have to take a break of 20 seconds which doesn't count to the 2 minutes of total."
  say "After one week you can come back to this tease and try your luck again."

  button "End game"
  goto_page "fail-end"
end

