Skip to content

Commit

Permalink
added a generic brb topic
Browse files Browse the repository at this point in the history
  • Loading branch information
multimokia committed Feb 27, 2019
1 parent 45da616 commit 23cbeb0
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Monika After Story/game/script-introduction.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ label ch30_reload_2_dlg:
m 1rksdld "Is something happening in your other game?"
m 1ekc "You know you could just come talk to me if there is, right?"

elif persistent._mas_idle_data.get("monika_idle_brb",False):
m 1ekd "If you need to leave, you can just tell me."

if mas_curr_affection_group == mas_affection.G_HAPPY:
m 1m "I'm sure it was a mistake though, or outside of your control. It can be unavoidable sometimes."
elif mas_curr_affection_group == mas_affection.G_SAD:
Expand Down
57 changes: 57 additions & 0 deletions Monika After Story/game/script-topics.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -9349,6 +9349,63 @@ label monika_idle_game_quick_callback:
m "I hope I don't have to wait such a long couple of minutes next time, ehehe."
return

init 5 python:
addEvent(
Event(
persistent.event_database,
eventlabel="monika_brb_idle",
prompt="I'll be right back",
category=['be right back'],
pool=True,
unlocked=True
)
)

label monika_brb_idle:
if mas_isMoniAff(higher=True):
m 1eua "Alright [player]."
m 1hub "Hurry back, I'll be waiting here for you~"

elif mas_isMoniNormal(higher=True):
m 1hub "Hurry back, [player]!"

elif mas_isMoniDis(higher=True):
m 1rsc "Oh,{w=1} okay."

else:
m 6ckc "..."

#Set up the callback label
$ mas_idle_mailbox.send_idle_cb("monika_brb_idle_callback")
#Then the idle data
$ persistent._mas_idle_data["monika_idle_brb"] = True
return "idle"

label monika_brb_idle_callback:
python:
wb_quips = [
"So what else did you want to do today?",
"Is there anything else you wanted to do today?",
"What else should we do today?",
]

wb_quip = renpy.random.choice(wb_quips)

if mas_isMoniAff(higher=True):
m 1hub "Welcome back, [player]. I missed you~"
m 1eua "[wb_quip]"

elif mas_isMoniNormal(higher=True):
m 1hub "Welcome back, [player]!"
m 1eua "[wb_quip]"

elif mas_isMoniDis(higher=True):
m 1esc "Oh, back already?"

else:
m 6ckc "..."
return

init 5 python:
addEvent(
Event(
Expand Down

0 comments on commit 23cbeb0

Please sign in to comment.