Advertisement
Guest User

IF STATEMENTS

a guest
Jun 4th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.50 KB | None | 0 0
  1. define w = Character("Wizard", color="#9A4CAD")
  2. define r = Character("Rogue", color="#871334")
  3.  
  4. # ----------------------------------------
  5.  
  6. label start:
  7.  
  8. scene bg black
  9.  
  10. $ Wizard_Mad = False
  11.  
  12. $ gg_name = renpy.input(u"Your name?", length=18, allow=" qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMйцукенгшщзхъфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ").title()
  13.  
  14. "You are in a forest."
  15.  
  16. "A wizard comes up to you waves."
  17.  
  18. menu:
  19.  
  20.     "You..."
  21.  
  22.     "Wave back.":
  23.         jump give
  24.     "Don't wave back.":
  25.         $ Wizard_Mad = True
  26.         jump give
  27.  
  28. label give:
  29.  
  30. "He offers you a staff."
  31.  
  32. menu:
  33.  
  34.     "What do you do?"
  35.  
  36.     "TAKE":
  37.         jump take1
  38.  
  39.     "DON'T TAKE":
  40.         jump dtake1
  41.  
  42. label take1:
  43.  
  44. "The wizard gives you his staff."
  45.  
  46. if Wizard_Mad == True:
  47.     w "Ack. I don't need that thing anyways."
  48.     "He leaves."
  49.     "Wow... he seemed really angry..."
  50.     jump end
  51. else:
  52.     w "Thank you! I could not carry the staff any longer."
  53.     jump end
  54.  
  55. label dtake1:
  56.  
  57. w "Ah!"
  58.  
  59. if Wizard_Mad == True:
  60.     w "I knew you wouldn't help a man in need."
  61.     w "I will be on my way then."
  62.     "The wizard leaves, angrily."
  63.     jump end
  64. else:
  65.     w "I suppose I'll be on my way."
  66.     jump end
  67.  
  68. label end:
  69. "Huh, what a strange fellow."
  70. centered "{size=25}{b}END{/b}{/size}"
  71.  
  72. menu:
  73.     "Play again?"
  74.  
  75.     "YES":
  76.         jump start
  77.     "NO":
  78.         jump trueend
  79.  
  80. label trueend:
  81. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement