-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlovers-story-CYOA.py
424 lines (391 loc) · 19.2 KB
/
lovers-story-CYOA.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
# runs your Python code
import sys
# script for pauses or delays
import time
# script to clear the terminal screen
import os
# imports only the sleep function from the time module
from time import sleep
#Introduction
def main():
clear_screen()
print("\nCast your mind back to the year 2009, when League of Legends was forged into existence.")
print("Feel the weight of years, as the game grew, evolved, and etched its mark in the annals of gaming history.")
print("Riot Games, the architects of this digital battleground, stand as pioneers in the vast world of multiplayer online battle arenas.")
while True:
name = input("Enter your name: ")
if name.isalpha():
print(f"And you, {name}, have ventured into a League of Legends story.")
break
else:
print("Invalid input! Please enter a name without numbers or punctuation.")
sleep(5)
clear_screen()
print("Yet, today is not about summoner spells or pixelated battles; it's about an adventure untold.")
print("A choose-your-own odyssey where the destiny of two enchanting soulmates, Xayah and Rakan, lies in your hands.")
print("Are you prepared to embark on this journey, shaping fate with every decision?")
print("The stage is set. The tale awaits.")
print("Let the adventure commence!\n\n\n")
def clear_screen():
if os.name == 'nt': # For Windows
os.system('cls')
# insert story
def scene1():
while True:
sleep(1)
print("There are moments in life where you need to decide where your passion is")
print(
"""
This is a prison break.
Xayah-Rakan is the worst! I swear he is focusing on his perfect golden feathers. Let's hope he doesn't mess up the plan.
Rakan-"Huh? What??"
Xayah-"The guards. You'll distract the guards away from the western gate. Once that happens I'll throw a feather into the sky"
Rakan-"You got it babe"
"""
)
print("What do you think Rakan does next?")
print(
" 1. Mess up the plan and gets caught\n 2. Distracts the guards and meets up with Xayah\n"
)
while True:
c1 = input("Enter your choice (1 or 2): ")
if c1.isdigit() and int(c1) in (1, 2):
choice = int(c1)
if choice == 1:
print(
"""
Xayah-I am watching Rakan from a distance. Alright things are going smooth. Time to move. "NO NO! PLEASE! RAKAN!"
"""
)
layOnGround()
return
elif choice == 2:
print(
"""
Rakan-He leaps back and forth between the walls leading the guards away.
Xayah-"I knew you could do it <3"
Rakan-"I know"
Xayah-My god I don't know if I want to slap him, kiss him, or both
I shake my head.
Rakan-He walks over to Xayah "Your soul belongs to me"
Xayah-I touch Rakan face "Lets go"
"""
)
togetherRakan()
return
else:
print("Please type a valid choice: 1 or 2 ")
def layOnGround():
while True:
sleep(1)
print(
"""
Xayah-I passed out from the trauma of seeing my love being taken away by HUMANS!
I slowly start to wake up
What is the first thing Xayah sees when she opens her eyes?
You continue to lay on the ground with a broken heart\n
Type your choice: 3
"""
)
while True:
c1 = input("Enter 3: ")
if c1.isdigit() and int(c1) == 3:
print(
"""
Xayah-As I continue to lay here. All I can feel is heartbreak. Heartbreak from seeing humans even think of touching him.
We are partners!
NOOOO we are not just partners.
Rakan is my soul mate, my lover, my best friend.
My mind begins to race with rage!
"""
)
faceHumansOrRakan()
return
else:
print(
"""
Please choice 3 to continue: 3
"""
)
def togetherRakan():
while True:
sleep(1)
print("""
Xayah - The wind starts to pick up, and I take advantage of the opportunity to climb higher.
Not knowing how long this favorable breeze will persist, I laugh aloud, my laughter resonating across the atmosphere as I expand my wings.
I'm lifted above the jail premises by the currents, giving me a higher view of the landscape.
My gaze focuses on Rakan as I soar; he is quick and nimble, leading the guards on a risky chase between the walls.
I feel a mixture of pride and frustration as I watch his acrobatics below.
I descend softly and land close to Rakan as he gathers his breath.
Xayah- "I knew you could do it <3"
Rakan: "I am know."
Xayah - My conflicting emotions manifest, unsure whether to slap him, kiss him, or perhaps a combination of both.
Shaking my head, I approach Rakan.
Rakan strides over, a mischievous grin on his face.
Rakan - "Your soul belongs to me."
Xayah gently touches Rakan's face, a mixture of affection and determination in her eyes."
Xayah - "Let's go."
"""
)
goChoice()
return
def faceHumansOrRakan():
while True:
sleep(1)
print(
"""
Xayah moves in the direction of the gate. She takes a moment to step back,
preparing to wreak havoc on those who have imprisoned her and taken Rakan.
Xayah laughs out loud as she is carried effortlessly by the wind across the jail grounds,
enjoying the freedom of flight and the vast space. Gazing downward from this perspective,
she witnesses Rakan deftly dodging the approaching guards.
Suddenly, there's danger as I float through the air. Crossbow-wielding enforcers in the air arrive on magical gliders.
Xayah is in their sights.
She floats through the air, suddenly overcome with a sense of threat.
Enforcement on magical gliders bearing crossbows draw near. Their sights are set on Rakan.\n
Now is the crucial moment for Xayah to decide:\n
Choice 4: As she continues to fly in the direction of Rakan, Xayah makes evasive maneuvers in an effort to dodge the incoming arrows.
Choice 5: Driven by fury, Xayah makes the decision to confront the enforcers directly in an effort to remove the threat and safeguard Rakan.
"""
)
while True:
c1 = input("Enter your choice (4 or 5): ")
if c1.isdigit() and int(c1) in (4, 5):
choice = int(c1)
if choice == 4:
print(
"""
Xayah - In a fit of rage, I unleash a storm of deadly feathers, swiftly eliminating every enforcer in sight.
The air is thick with tension as the last echoes of battle fade away. I stand alone, surrounded by the fallen.
As the reality of the aftermath settles, I find myself consumed by a haunting emptiness.
The victory is hollow without Rakan by my side. I collapse to the ground, overwhelmed by the weight of loss.
Xayah - As I wake up from the horror that my own mind has been reminding me,
a new day burns my eyes from the tears shed during my restless sleep. Though only moments may have passed,
Rakan's absence feels like a lifetime.
"""
)
RevPlan()
return
elif choice == 5:
print(
"""
Xayah-I dream of Rakan. I remember how he tells me to be careful.
That was the last time I saw him before we parted ways. My heart continues to sink.
Fueled by rage and an unyielding desire to protect Rakan, I abandon evasion and dive straight towards the enforcers on their magical gliders.
My feathers surround me like a tempest as I descend, a force of nature ready to confront those who dare threaten my love.
The enforcers, taken aback by my sudden offensive, try to adjust their aim, but the chaotic dance of my feathers makes it difficult for them to lock on.
In a burst of fury, I unleash a barrage of razor-sharp feathers towards the approaching threat.
The clash between magic and feathers unfolds in the night sky. The air echoes with the sounds of battle as Xayah fights to keep the enforcers at bay.
Rakan, watching from below, is awestruck by the display of power.
Rakan - "That's my girl!"
"""
)
faceHumansOrRakanEnd()
return
else:
print(
"""
Please type a valid choice: 4 or 5
"""
)
def RevPlan():
while True:
sleep(1)
print(
"""
"Where do I go from here?"\n
Now faced with a critical decision:
Choice 6: Xayah takes a moment to seek revenge, driven by the burning desire to make those responsible for her anguish pay.
Choice 7: Xayah chooses to stick to the original plan and escape the prison, determined to find Rakan regardless of the cost.
What does Xayah decide?
"""
)
sleep(1)
while True:
c1= input("Enter your choice (6 or 7): ")
if c1.isdigit() and int(c1) in (6, 7):
choice = int(c1)
if choice == 6:
print(
"""
Xayah-I take a moment to slow down my mind to remember every detail of the humans who took Rakan.
What did they look like?
Where did they take Rakan?
How will I get him back?
What do I need to pull it off?
Am I strong enough?
"""
)
sleep(1)
goChoice()
return
elif choice == 7:
print(
"""
Xayah-"Time to fight"
Suppressing the burning desire for revenge, I focus on the original plan escape and find Rakan.
The winds of determination propel me forward as I navigate through the prison grounds, avoiding any potential threats.
As I move stealthily, weaving through shadows and ducking behind structures, the distant sounds of alarms and shouts echo through the air.
The chaos caused earlier has drawn the attention of more guards, but their numbers are no match for my agility and lethal precision.
The prison layout becomes familiar as I approach the designated escape route. It's a labyrinth of corridors and hidden passages,
known only to those who have spent years studying the intricacies of the prison's design.
Suddenly, a group of guards blocks my path. There's no avoiding them, and confrontation seems inevitable. With a deep breath,
I summon my feathers, ready to face the onslaught.
The guards, however, are hesitant. The tales of my earlier rampage have spread, and fear is evident in their eyes. Without a word,
they part, allowing me a clear path forward.
As I reach the exit, the night air greets me, and the open sky beckons. Freedom is within reach.
The moonlight illuminates my golden feathers, a stark contrast to the darkness that surrounds me.
Rakan, wherever you are, I'm coming.
"""
)
RevPlanEnd()
return
else:
print(
"""
Please type a valid choice: 6 or 7
"""
)
def goChoice():
while True:
sleep(1)
print(
"""
Xayah-The wind is starting to pick up.
I use this moment to get higher ground. Who knows how long the wind will continue.
I laugh high into the air. Spreading my wings.
Allowing the air to carry me high above the prison grounds.
I see Rakan\n
What happens during Xayah's flight?
Does Xayah get shot down or goes to Rakan?
Choice: 8. Shot
Choice: 9. Rakan
"""
)
while True:
c1 = input("Enter your choice (8 or 9): ")
if c1.isdigit() and int(c1) in (8, 9):
choice = int(c1)
if choice == 8:
print(
"""
You died
"""
)
exit()
elif choice == 9:
print(
"""
Xayah-"There you are"
"""
)
PlanRak()
return
else:
print(
"""
("Please type a valid choice: 8 or 9")
"""
)
def PlanRak():
while True:
sleep(1)
print(
"""
Xayah - "There you are."
Taking a deep breath, I assess the situation. The wind still beneath my wings, I gather my resolve.
Xayah - "Alright. There were four humans. Two in front of Rakan and two behind him.
They took him to the North entrance. How can I get there from here?"\n
Now faced with a critical decision:\n
Choice 10: Xayah decides to risk it all and go straight to the gate, driven by urgency and the need to reach Rakan as quickly as possible.
Choice 11: Xayah opts to make a plan, carefully considering the best approach to rescue Rakan without jeopardizing their chances.
What does Xayah decide?\n
Enter your choice (10 or 11)
"""
)
while True:
c1 = input("Enter your choice (10 or 11): ")
if c1.isdigit() and int(c1) in (10, 11):
choice = int(c1)
if choice == 10:
print(
"""
Xayah - Knowing nothing matters but Rakan, I take a deep breath.
I shake off any dark thoughts and start running directly to the North gate. Maybe I am not that far behind and can still save him.
"Hold on, my love! I'm coming!"
As my feathers fall into all directions with a mind of their own, I get closer to the North gate.
Traces of Rakan's golden feathers on the ground give me hope. He is close.
"""
)
sleep(1)
Lastscene()
return
elif choice == 11:
print(
"""
Xayah - "Take out two of the guards while Rakan deals with the other two guards. Good enough for me. Let's save him."
In the shadows, we silently approach the prison's entrance. Rakan, ever the charming distraction,
engages the attention of the guards while I prepare my feathers for a swift and precise strike.
As Rakan engages in playful banter, distracting the guards, I release my deadly feathers with unparalleled precision.
Two guards fall without a sound, their eyes widening in surprise before they crumple to the ground.
Rakan - "Smooth, love."
Xayah - "Save the compliments for later. We're not out of this yet."
With half the guards dealt with, we move swiftly towards the remaining two. Rakan's charm is a weapon in itself,
disorienting the guards just enough for me to strike. The night air echoes with the clash of metal and the thud of incapacitated foes.
We reach the North entrance, victorious in our stealthy approach. The gate looms ahead, and Rakan gives me a sly grin.
Rakan - "Shall we?"
Xayah - "Let's get out of here."
Hand in hand, we slip through the gate, leaving the prison behind. The moonlight bathes us as we disappear into the night,
ready for the adventures that await.
"""
)
return
else:
print("Please type a valid choice: 10 or 11")
def Lastscene():
while True:
sleep(1)
print(
"""
Xayah-"He better be okay or ELSE!"
I stop right in front of two guards. One guard is directly in front of me, and another holds Rakan by the wrists. I smirk.
"Honey, you okay?"
Rakan - "Oh, this is nothing. Me and the guys were just going for a walk."
Xayah- I roll my eyes. Even in danger, he still has something smart to say. I snap my fingers, and my quills tear through both guards,
leaving their corpses on the ground. I take Rakan into my arms.
As we sprint towards the North entrance, adrenaline pumping through our veins, we encounter more resistance.
Guards pour in from all sides, alerted by the commotion. But together, with our combined skills, we cut through them like a whirlwind.
Finally, we reach the North gate. Rakan, though battered, wears a grin.
Rakan - "You took your sweet time, love."
Xayah - "Oh, shut up. Let's get out of here."
We burst through the gate, leaving the prison behind. The wind carries us away as we soar into the night sky,
free from the clutches of captivity.
"""
)
love()
def faceHumansOrRakanEnd():
print("As Xayah lands beside Rakan, her injured wing a testament to the intensity of the battle,\nthey exchange a glance filled with both relief and concern")
print("Rakan - You're incredible, love. But we need to go before more reinforcements arrive.")
print("Together, hand in hand, they vanish into the night, leaving the scene of their triumph behind.")
sys.exit()
def RevPlanEnd():
print("Xayah's determination to stick to the original plan allows her to navigate the prison's challenges and escape.")
print("The journey to find Rakan continues in the vast expanse beyond the prison walls.")
print("If you'd like to embark on another adventure or have a new story idea, feel free to create it!")
sys.exit()
def exit():
sleep(2)
print("Goodbye!")
print("copyright: Carisa Saenz-Videtto")
# Add retry
sys.exit()
def love():
sleep(2)
print("Xayah and Rakan's love triumphs over adversity as they escape the prison together.\nTheir journey continues in the vast expanse of Eldoria, where new adventures await.")
print("Thank you for guiding Xayah through her tale. If you'd like to embark on another adventure, feel free to create a new story!")
print("Hoped you enjoyed the story")
print("copyright:Carisa Saenz-Videtto")
sys.exit()
if __name__ == "__main__":
main()
scene1()