The cooldown period is 5 days. The code hasn't been changed in 0.1.9, but the more often she visited, the less likely it becomes.I tried to trigger Yvette night visite again, tried for 2 weeks, no luck.
I am sure that I got the scene again after completing both achievements but it was before 0.1.9.0.
Here is the code to check if the event triggers or not:
Python:
# --- check event: bad dream ---
$ l_event_seen_times = int(yvette.get_event_seen_times("Bad_dream")) * 2
if l_event_seen_times == 0:
$ l_event_seen_times = 2
if yvette in list_of_characters and yvette.rsm[0].affection >= 80 and yvette.rsm[0].love >= 40 and renpy.random.randint(1,l_event_seen_times) == 1 and actions_left >= 12:
if yvette.get_action_allowed("event_bad_dream") == True:
The event check is done when you click the "sleep button".
- yvette in list_of_characters --> she has to be on the island
- affection >= 80
- love >= 40
- actions_left >= 12 --> it has to be 01:00 or earlier when you go to sleep
- renpy.random.randint(1,l_event_seen_times) == 1 --> okay that's the tricky part. If you have seen the event 0,1 or 2 times, your chance is 50%. After that it goes down with each visit. with 10 visits it's only 10% now.
Make sure all the other requirements are met. Save before you click the sleep button.
Sleep, if event doesn't trigger, reload, try again.
Since it becomes more or less impossible to trigger the event after you have seen it more than 10 times,
I have changed the code:
Python:
if l_event_seen_times == 0:
$ l_event_seen_times = 2
elif l_event_seen_times > 6:
$ l_event_seen_times = 6