Created
October 18, 2019 17:39
-
-
Save beefoundry/f01ce1ff680c7769abb5db075ca96ae8 to your computer and use it in GitHub Desktop.
Drive Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (game.pov = player) { | |
if (player.followers = (player2)) { | |
msg ("You settle behind the wheel, and Aziraphale nervously takes his place in the passenger seat. Which direction would you like to drive?") | |
} | |
else { | |
msg ("You settle behind the wheel of the Bentley. The car purrs to life in a keyless miracle. Which direction would you like to drive?") | |
} | |
} | |
else { | |
msg ("You gingerly climb behind the wheel of the Bentley. Crowley will discorporate you if anything happens to his car. With hesitation, you miracle the engine to life. Which direction would you like to drive?") | |
} | |
get input { | |
if (game.pov.parent = mayfair_street) { | |
if (IsRegexMatch ("(east|e)", (result))) { | |
MoveObject (bentley, soho_street) | |
MoveObject (game.pov, soho_street) | |
} | |
else if ((IsRegexMatch ("(southeast|se)", (result)))) { | |
MoveObject (bentley, st_james_park) | |
MoveObject (game.pov, st_james_park) | |
} | |
else { | |
msg ("You can't drive that direction!") | |
} | |
} | |
else if (game.pov.parent = soho_street) { | |
if ((IsRegexMatch ("(west|w)", LCase (result)))) { | |
MoveObject (bentley, mayfair_street) | |
MoveObject (game.pov, mayfair_street) | |
} | |
else if ((IsRegexMatch ("(southwest|sw)", LCase (result)))) { | |
MoveObject (bentley, st_james_park) | |
MoveObject (game.pov, st_james_park) | |
} | |
else { | |
msg ("You can't drive that direction!") | |
} | |
} | |
else if (game.pov.parent = st_james_park) { | |
if ((IsRegexMatch ("(northeast|ne)", LCase (result)))) { | |
if ((ListContains(ScopeVisible(maze_19), ))) { | |
MoveObject (bentley, maze_19) | |
MoveObject (player, maze_19) | |
} | |
else { | |
MoveObject (bentley, soho_street) | |
MoveObject (game.pov, soho_street) | |
} | |
} | |
else if ((IsRegexMatch ("(northwest|nw)", LCase (result)))) { | |
MoveObject (bentley, mayfair_street) | |
MoveObject (game.pov, mayfair_street) | |
} | |
else { | |
msg ("You can't drive that direction!") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment