Skip to content

Instantly share code, notes, and snippets.

@beefoundry
Last active October 18, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beefoundry/66e51ace120c4d204f49014634cf0ba0 to your computer and use it in GitHub Desktop.
Save beefoundry/66e51ace120c4d204f49014634cf0ba0 to your computer and use it in GitHub Desktop.
Basic car movement outside the maze
if player object = player 1
if player.followers = (player2)
print message “You settle behind the wheel, and your friend nervously takes his place in the passenger seat. Which direction would you like to drive?"
else
print message "You settle behind the wheel of the Bentley. Which direction would you like to drive?"
else
print message "You gingerly climb behind the wheel of the Bentley. Your friend will discorporate you if anything happens to his car. Which direction would you like to drive?"
get input
if here = mayfair_street
if (IsRegexMatch ("(east|e)", LCase (result))) {
MoveObject (bentley, soho_street)
MoveObject (player, soho_street)
}
else if (IsRegexMatch ("(southeast|se)", LCase (result))) {
MoveObject (bentley, st_james_park)
MoveObject (player, st_james_park)
}
else
print message "You can't drive that direction!"
else if
here = 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 (player, soho_street)
}
else if
if
(IsRegexMatch ("(northwest|nw)", LCase (result))) {
MoveObject (bentley, mayfair_street)
MoveObject (player, mayfair_street)
}
else
print message "You can't drive that direction!"
else if
here = soho_street
if
(IsRegexMatch ("(west|w)", LCase (result))) {
MoveObject (bentley, mayfair_street)
MoveObject (player, mayfair_street)
}
else if
(IsRegexMatch ("(southwest|sw)", LCase (result))) {
MoveObject (bentley, st_james_park)
MoveObject (player, st_james_park)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment