Gwith

Draft 1: ISIS

May 7th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. Write-Host ("Welcome to ISIS `n Your death begins here")
  2. Write-Host (" From the beginning of time man has sought its own destruction, in this time of despair only one hero may rise amongst the ranks to deter evil from taking `
  3. its place in the world. Will you be this hero? Can you stand up for what is right? Can you protect the helpless from there own demise? You hero, our are only hope.")
  4.  
  5. function Menu
  6. {
  7. [int]$MenuChoice = 0
  8. While ( $MenuChoice -lt 1 -or $MenuChoice -gt 2 )
  9. {
  10. switch ($MenuChoice)
  11. {
  12. 1{Warrior}
  13. 2{Mage}
  14. default {Write-Host ("You have failed")}
  15. }
  16.  
  17. break
  18. }
  19.  
  20. }
  21.  
  22. Menu
  23.  
  24. Write-Host ("You have selected $MenuChoice")
  25. <#
  26.  
  27. switch( $MenuChoice )
  28. {
  29. 1{Warrior}
  30. 2{Mage}
  31. default {Write-Host "You have failed"}
  32. }
  33. #>
  34.  
  35. [int]$skill = 0
  36.  
  37. function Warrior
  38. {
  39. Write-Host ("You are a Warrior")
  40. Write-Host ("Pick Your Skill")
  41. switch ( $skill )
  42. {
  43. 1 {Read-Host "1. Mortal Strike"}
  44. 2 {Read-Host "2. Rage Strike"}
  45. 3 {Read-Host "3. Pick Again"}
  46. }
  47. }
  48.  
  49. function Mage
  50. {
  51. Write-Host ("You are a Mage")
  52. Write-Host ("Pick Your Skill")
  53. switch ( $skill )
  54. {
  55. 1 {Read-Host "1. Fireball"}
  56. 2 {Read-Host "2. Frostbolt"}
  57. 3 {Read-Host "3. Pick Again"}
  58. }
  59. }
  60.  
  61. Write-Host ("Your journey has finally begun young hero")
Advertisement
Add Comment
Please, Sign In to add comment