repl.it
@Fokil/

Adventure´s of Tim V1

Python

No description

fork
loading
Files
  • main.py
main.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
from termcolor import colored
import time
import random

print('Loading.',end='\r')


import tty
import string
import time
print('Loading..',end='\r')
import requests
import os
from datetime import datetime
import traceback
print('Loading...',end='\r')


time.sleep(1)
print(colored('Stranger:', 'red'), colored('Hey bud I found you here on the ground thought you where dead but you look pretty alive to me. you where quite lucky you survived this. the evil wizard Tom Attacked. you should explore', 'green')) 
time.sleep(10)
 

def choosePath():
  path = ""
  while path != "1" and path != "2":
    path = input(colored('What Will you Explore? ', 'magenta') + colored('1.Explore The Forest', 'blue') + "\n" + colored('                       ', 'red') + colored('2.Explore The Town', 'blue'))

  return path


# First Choice of Path
def checkPath(chosenPath):
    print("")


    thisPath = "Explore The Town"

    if chosenPath == (thisPath):
        print("*you explored the forest and found the evil wizard tom´s stupid shack")
    else:
        print("*You explored the town and found a knife and a helmet you picked up both")
checkPath(choosePath())

def choosePath():
  path = ""
  while path != "1" and path != "2":
    path = input(colored('You see Someone getting atacked what will you do? ', 'magenta') + colored('1.watch it happend', 'blue') + "\n" + colored('                       ', 'red') + colored('2.help them', 'blue'))

  return path


# Second Choice of Path
def checkPath(chosenPath):
    print("")


    thisPath = "watch it happend"

    if chosenPath == (thisPath):
        print("*you didnt help them and that was good they where acctualy just a hungry troll in disguise the troll ate the attacker and ran away*")
    else:
        print("*you tried to help them but they attacked you they where acctualy a hungry troll in disguise wich ate you GAME OVER*")
checkPath(choosePath())

def choosePath():
  path = ""
  while path != "1" and path != "2":
    path = input(colored('you see the evil wizard guy thing tom what will you do? ', 'magenta') + colored('2.get a better weapond and attack', 'blue') + "\n" + colored('                       ', 'red') + colored('1.attack Now', 'blue'))

  return path


# Third Choice of Path
def checkPath(chosenPath):
    print("")


    thisPath = "attack now"

    if chosenPath == (thisPath):
        print("*you attacked tom with your knife and won the battle seconds later you hear your mom telling you its time to go to school YOU WIN*")
    else:
        print("*you ran over to get a better weapond but the building collapsed and you died GAME OVER*")
checkPath(choosePath())
?