Gwith

LiveChat

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