Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write-Host ("Welcome to ISIS `n Your death begins here")
- 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 `
- 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")
- function Menu
- {
- # Show the user the information you want them to act on -ie. the choice
- Write-Host "********************"
- Write-Host ""
- Write-Host "Select class:"
- Write-Host "1) Warrior"
- Write-Host "2) Mage"
- # Request the choice from the user
- $MenuChoice = Read-Host "Choice"
- # If the User doesn't choose 1 or 2, make them choose again:
- While ( $MenuChoice -ne "1" -and $MenuChoice -ne "2" )
- {
- Write-Host "Invalid selection. Please choose 1 or 2"
- $MenuChoice = Read-Host "Choice"
- }
- # Return the selection the user made based on $menuchoice
- switch ( $MenuChoice )
- {
- "1" { Write-Host ("You have selected the Warrior")}
- "2" { Write-Host ("You have selected the Mage")}
- }
- }
- Menu
- function Warrior
- {
- Write-Host "Select A skill"
- Write-Host "1) For Mortal Strike"
- Write-Host "2) For Rage Strike"
- $skill = Read-Host "Skill"
- While ($skill -ne "1" -and $skill -ne "2" )
- {
- write-host "Invalid selection. Please choose 1 or 2"
- $skill = Read-Host"Choice"
- }
- switch ( $skill )
- {
- "1" { Write-Host("You have selected Mortal Strike!`n") }
- "2" { Write-Host("You have selected Rage Strike!`n") }
- }
- }
- function Mage
- {
- Write-Host "Select A skill"
- Write-Host "1) For Fireball"
- Write-Host "2) For Frostbolt"
- $skill = Read-Host "Skill"
- While ($skill -ne "1" -and $skill -ne "2" )
- {
- write-host "Invalid selection. Please choose 1 or 2"
- $skill = Read-Host"Choice"
- }
- switch ( $skill )
- {
- 1 { Write-Host("You have selected Fireball!`n") }
- 2 { Write-Host("You have selected Fireball!`n") }
- }
- }
- if ($MenuChoice -eq "1")
- {
- Warrior
- }
- Else
- {
- Mage
- }
- Read-Host ( "What is your name Hero?" )
- Write-Host ( "Your journey has finally begun young hero" )
Advertisement
Add Comment
Please, Sign In to add comment