tBalcony.dcgi - dotg - a bitreich fosdem adventure
HTML git clone https://git.parazyd.org/dotg
DIR Log
DIR Files
DIR Refs
---
tBalcony.dcgi (1292B)
---
1 #!/bin/sh
2
3 # SPOILER:
4 # The French mode was introduced because it was discriminatory to let a French
5 # person throw smelly cheese into a kitchen sink. So we made it possible to go
6 # the French way. See history for how often this happened. We like the French.
7 #
8 # The British mode was introduced because the British felt discriminated.
9 . config
10 echo Balcony > $savegame/room
11 . functions
12 . maps
13
14 map_balcony
15
16 if [ -n "$2" ]; then
17 case "$2" in
18 isfrench)
19 echo 1 > "$inventory/.isfrench"
20 ;;
21 isbritish)
22 echo 1 > "$inventory/.isbritish"
23 ;;
24 esac
25 fi
26
27 cat <<EOM
28 ## THE BALCONY (BAL)
29
30 You are on the balcony. It's chilly. There are:
31 $(cat $balcony/Beers) beers, and $(cat $balcony/Chocolate_Milks) chocolate milks left.
32
33 There are two people talking near you.
34
35 EOM
36
37 if [ -f "$inventory/.isbritish" ];
38 then
39 cat <<EOM
40 Jean-Claude Juncker is on the balcony and realizes you are British. He
41 calls the EU police and throws you out of the party.
42
43 [1|You end up on a bench in front of the party building.|$path/Bench.dcgi|server|port]
44 EOM
45 else
46 cat <<EOM
47
48 [1|Talk to people|$path/talk-balcony.dcgi|server|port]
49
50 [1|Take two beers|$path/takebeer.dcgi|server|port]
51 [1|Take two chocolate milks|$path/takemilk.dcgi|server|port]
52
53 [1|Check inventory|$path/inventory.dcgi|server|port]
54 EOM
55
56 navigation
57 fi