1. Arne Babenhauserheide
  2. TextRPG

Commits

Arne Babenhauserheide  committed caf28c6

Adapted texrpg teststory to use story() for output.

  • Participants
  • Parent commits 59dd26f
  • Branches default

Comments (0)

Files changed (1)

File rpg_lib/textrpg.py

View file
  • Ignore whitespace
 ### Test story lines ###
 
 def greet(char): 
-    diag("Old man: Welcome traveller. You've come to the right place to learn about your heritage.")
-    diag("Sadly you aren' well liked around here.")
-    diag("Heges for example didn't like your father too much.")
-    diag("Oh well, that was an understatment. You should better prepare yourself to face him. I think he'd love to see your face in the mud. Here's my knife. I like fights to be fair.")
-    diag("...")
-    diag("You say you don't know who we think you are?")
-    diag("Well, at least tell me your name then, and I'll tell you a bit about your father, after you won.")
+    story("Old man: Welcome traveller. You've come to the right place to learn about your heritage.")
+    story("Sadly you aren' well liked around here.")
+    story("Heges for example didn't like your father too much.")
+    story("""Oh well, that was an understatment. You should better prepare yourself to face him. I think he'd love to see your face in the mud. Here's my knife. I like fights to be fair.
+""")
+    story("You say you don't know who we think you are?")
+    story("Well, at least tell me your name then, and I'll tell you a bit about your father, after you won.")
     char.name = raw_input("My Name: ")
-    diag("You've got a nice name, " + char.name + ". Good luck!")
+    story("You've got a nice name, " + char.name + ". Good luck!")
 
 
 if __name__ == "__main__": 
     choss.name = "Hegen"
     won = battle(char, choss)
     if won: 
-        diag(char.name + " won the fight.")
+        story(char.name + " won the fight.")
     else: 
-        diag(choss.name + " won the fight.")
+        story(choss.name + " won the fight.")
     give_exp(char, 3)
     choss.upgrade(3)
     if won: 
-        diag("Well done " + char.name + ". I knew my trust in you was well placed. Now about your father...")
+        story("Well done " + char.name + ". I knew my trust in you was well placed. Now about your father...")
     else: 
-        diag("I didn't expect you to lose to him. Well, fate is a harsh teacher. Better luck next time!")
+        story("I didn't expect you to lose to him. Well, fate is a harsh teacher. Better luck next time!")