Advertisement
Wazabyy

Untitled

Nov 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace RPGStarter
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Console.WriteLine();
  14. Console.WriteLine("Bienvenue dans RPGStarter");
  15. System.Threading.Thread.Sleep(1500);
  16. Console.WriteLine("Commençons par vous attribuer une classe");
  17. System.Threading.Thread.Sleep(1500);
  18. Console.Write("Hmmm");
  19. ChoixClasse();
  20. Suspension();
  21. Console.WriteLine("Ok, tu seras " + ChoixClasse() + ".");
  22. Console.Clear();
  23. Console.WriteLine("Bon, c'est pas tout ça mais, faudrait p't'être qu'on sache ton nom hein...");
  24. Console.WriteLine("C'est quoi ton p'tit nom ?");
  25. string Name = Console.ReadLine();
  26. }
  27.  
  28. static void Suspension()
  29. {
  30. System.Threading.Thread.Sleep(1000);
  31. Console.Write(".");
  32. System.Threading.Thread.Sleep(1000);
  33. Console.Write(".");
  34. System.Threading.Thread.Sleep(1000);
  35. Console.WriteLine(".");
  36. }
  37.  
  38. static string ChoixClasse()
  39. {
  40. string Classe = "";
  41. Random random = new Random();
  42. int classeNumber = random.Next(0, 3);
  43. switch (classeNumber)
  44. {
  45. case 0:
  46. Classe = "Aventurier";
  47. break;
  48. case 1:
  49. Classe = "Sorcier";
  50. break;
  51. case 2:
  52. Classe = "Paladin";
  53. break;
  54. }
  55. return Classe;
  56. }
  57.  
  58. }
  59. }
  60.  
  61.  
  62. partie bruh!
  63. static int ChoixClasse()
  64. {
  65. int classe = 0, verif = 0
  66. ;string strClasse = ""
  67. ;while (verif != 1)
  68. {
  69. ;Console.WriteLine("~~~> Choisissez votre classe <~~~")
  70. ;Console.WriteLine("1.Guerrier")
  71. ;Console.WriteLine("2.Sorcier")
  72. ;classe = Convert.ToInt16(Console.ReadLine())
  73. ;if (classe == 1)
  74. {
  75. strClasse = "guerrier";
  76. }
  77. ;if (classe == 2)
  78. {
  79. strClasse = "Sorcier";
  80. }
  81.  
  82. if (classe != 1 && classe != 2)
  83. {
  84. Console.WriteLine("~~~~choix non valide !!~~~~");
  85. }
  86. ;if (classe == 1 | classe == 2)
  87. {
  88. ;Console.WriteLine(strClasse + " : êtes- vous sur ?")
  89. ;Console.WriteLine("0. NON ")
  90. ;Console.WriteLine("1. OUI ")
  91. ;verif = Convert.ToInt16(Console.ReadLine())
  92. ;
  93.  
  94. }
  95. }
  96. return classe;
  97. }
  98.  
  99. static int ChoixLieu()
  100. {
  101. int lieu = 0, verif = 0
  102. ;string strLieu = ""
  103. ;
  104. if (lieu == 0)
  105. { strLieu = "bar"; }
  106. if (lieu == 1)
  107. { strLieu = "forêt"; }
  108. if (lieu == 3)
  109. { strLieu = "donjon"; }
  110. while (verif != 1)
  111. {
  112. ;Console.WriteLine("")
  113. ;
  114. }
  115.  
  116. ;return lieu;
  117. }
  118.  
  119. static int Bar()
  120. {
  121. int verif = 0, choix = 0
  122. ;
  123. while (verif != 1)
  124. {
  125. Console.WriteLine("~~~~>BAR<~~~~");
  126. Console.WriteLine("1.bière");
  127. Console.WriteLine("2.dormir");
  128. choix = Convert.ToInt16(Console.ReadLine());
  129. switch (choix)
  130. {
  131. case 1:
  132. Console.WriteLine("Bière : -5€ +2HP");
  133. break;
  134. case 2:
  135. Console.WriteLine("Dormir : -25€ +full HP");
  136. break;
  137. }
  138. }
  139.  
  140. }
  141.  
  142. static int Forêt()
  143.  
  144. static int Donjon()
  145. {
  146. return choix
  147. }
  148.  
  149. static void combat()
  150. {
  151.  
  152. }
  153. static void Main(string[] args)
  154. {
  155. int classe = ChoixClasse(), lieu = 0, vie = 1, hp = 10
  156. ;
  157.  
  158. while (vie != 0)
  159. {
  160. switch (lieu)
  161. {
  162. case 0:
  163. ChoixLieu();
  164. break;
  165. case 1:
  166. Bar();
  167. break;
  168. case 2:
  169. Forêt();
  170. break;
  171.  
  172. }
  173.  
  174.  
  175.  
  176. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement