Switch to edit mode.
Name(s): rack1: if (dobjstr[1] == "8")
2: this.game = "8 Ball"
3: this.balls = this.rackfor8ball
4: player:tell("You rack the balls into a tight triangle.")
5: this.location:announce(player.name + " racks the balls into a tight triangle for a game of 8 Ball.")
6: ballsontable = 15
7: elseif (dobjstr[1] == "9")
8: this.game = "9 Ball"
9: this.balls = this.rackfor9ball
10: player:tell("You rack the balls into a tight diamond.")
11: this.location:announce(player.name + " racks the balls into a tight diamond for a game of 9 Ball")
12: ballsontable = 9
13: elseif (dobjstr[1] == "C")
14: this.game = "Cutthroat"
15: this.balls = this.rackfor8ball
16: player:tell("You rack the balls into a tight triangle.")
17: this.location:announce(player.name + " racks the balls into a tight triangle for a game of Cutthroat")
18: ballsontable = 15
19: else
20: player:tell("You just can't seem to remember how to play that game. Maybe you should try another.")
21: return
22: endif
23: for q in [1..15]
24: this.ballinfo[q] = {7, 0}
25: endfor
26: this.broken = 0
27: this.scratch = 0
28: this.ballsontable = ballsontable
29: this:security()