Gwith

Draft 1: ISIS

May 7th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 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.`n")
  4.  
  5. function Menu
  6. {
  7.  
  8. [int]$MenuChoice = 0
  9. $choice = Read-Host ("Select a class `n 1. For Warrior `n 2. For Mage `n")
  10. While ( $MenuChoice -lt 1 -or $MenuChoice -gt 2 )
  11. {
  12. switch ($Choice)
  13. {
  14. 1 { $MenuChoice = Write-Host ("You have selected Warrior `n"); break }
  15. 2 { $MenuChoice = Write-Host ("You have selected Mage`n"); break }
  16. default {Write-Host ("You have failed `n" );break }
  17.  
  18. }
  19.  
  20. break
  21. }
  22.  
  23. }
  24.  
  25. Menu
  26.  
  27. [int]$skill = 0
  28.  
  29. function Warrior
  30. {
  31. Write-Host ("You are a Warrior `n")
  32. Write-Host ("Pick Your Skill `n ")
  33.  
  34. switch ( $skill )
  35. {
  36. 1 {Write-Host "1. Mortal Strike"}
  37. 2 {Write-Hos "2. Rage Strike"}
  38. 3 {Write-Hos "3. Pick Again"}
  39. }
  40. }
  41.  
  42. function Mage
  43. {
  44. Write-Host ("You are a Mage")
  45. Write-Host ("Pick Your Skill")
  46.  
  47. switch ( $skill )
  48. {
  49. 1 {Write-Host "1. Fireball"}
  50. 2 {Write-Host "2. Frostbolt"}
  51. 3 {Write-Host "3. Pick Again"}
  52. }
  53. }
  54.  
  55. <#
  56. if ($MenuChoice = 1)
  57. Warrior
  58. Else
  59. Mage
  60.  
  61. Write-Host ("Your journey has finally begun young hero")
  62. #>
Advertisement
Add Comment
Please, Sign In to add comment