commit 6aa16475f6d29760afb8f1a0f88e49f1d873ed7c
parent c15a11ed0032cba64739a7598b141a346487d944
Author: parazyd <parazyd@dyne.org>
Date: Fri, 23 Feb 2018 18:45:17 +0100
Finalize cleanup.
Diffstat:
25 files changed, 205 insertions(+), 375 deletions(-)
diff --git a/act-i/Balcony.dcgi b/act-i/Balcony.dcgi
@@ -22,7 +22,6 @@ There are two people talking near you.
[1|Take chocolate milk|$path/takemilk.dcgi|server|port]
[1|Check inventory|$path/inventory.dcgi|server|port]
-
EOM
navigation
diff --git a/act-i/Bedroom1.dcgi b/act-i/Bedroom1.dcgi
@@ -25,7 +25,6 @@ cat <<EOM
[1|Look into the closet|$path/r1-closet.dcgi|server|port]
[1|Check inventory|$path/inventory.dcgi|server|port]
-
EOM
navigation
diff --git a/act-i/Bedroom2.dcgi b/act-i/Bedroom2.dcgi
@@ -13,32 +13,21 @@ case "$gotkey" in
*) map_bedroom2_locked ;;
esac
-cat <<EOM
-## BEDROOM 2 (R1)
-
-EOM
+_msg "## BEDROOM 2 (R2)"
case "$gotkey" in
yes)
- cat <<EOM
-You are in a small bedroom.
+ _msg "You are in a small bedroom.
-You see a bed, closet, and a chair.
+ You see a bed, closet, and a chair."
-EOM
list_items_to take "$bedroom2"
;;
*)
- cat <<EOM
-You can not open the bedroom door. It seems it's locked.
-EOM
+ _msg "You can not open the bedroom door. It seems it's locked."
;;
esac
-cat <<EOM
-
-[1|Check inventory|$path/inventory.dcgi|server|port]
-
-EOM
+_msg "[1|Check inventory|$path/inventory.dcgi|server|port]"
navigation
diff --git a/act-i/Bedroom2.sh b/act-i/Bedroom2.sh
@@ -3,19 +3,9 @@ specific_bedroom2() {
case "$item" in
Keychain_with_a_key)
- cat <<EOM
-
-You unlock the bedroom door. The key snaps and breaks, blocking the
-keyhole.
-EOM
+ _msg "You unlock the bedroom door. The key snaps and breaks, blocking the keyhole."
rm "$inventory/$item"
rm "$bedroom2/.notyet"
;;
- *)
- cat <<EOM
-
-$item is of no use here.
-EOM
- ;;
esac
}
diff --git a/act-i/Hipster_Area.dcgi b/act-i/Hipster_Area.dcgi
@@ -24,16 +24,10 @@ EOM
dropitem Beers && echo "You give a beer to your friend."
if [ -f "$inventory/.nerdsmoved" ]; then
- cat <<EOM
-
-Behind you (NX) there is an unattended NeXT UNIX machine.
-EOM
+ _msg "Behind you (NX) there is an unattended NeXT UNIX machine."
else
- cat <<EOM
-
-Behind you (NX) there are a couple of nerds trying to type in
-commands into a NeXT machine.
-EOM
+ _msg "Behind you (NX) there are a couple of nerds trying to type in
+ commands into a NeXT machine."
fi
cat <<EOM
diff --git a/act-i/Hipster_Area.sh b/act-i/Hipster_Area.sh
@@ -4,22 +4,13 @@ specific_talk_hipsterarea() {
case "$item" in
Old_Thinkpad)
if [ -f "$inventory/Wifi_password" ]; then
- cat <<EOM
-
-You got the Wifi password. You type it in and you now enjoy the Gopherspace.
-EOM
+ _msg "You got the Wifi password. You type it in and you now enjoy the Gopherspace."
else
- cat <<EOM
-
-You scan the Wifi radio, but don't manage to find an open network.
-EOM
+ _msg "You scan the Wifi radio, but don't manage to find an open network."
fi
;;
Plate_of_Bolognese_Sauce)
- cat <<EOM
-
-You disgustingly look at the Bolognese sauce, but decide to keep it.
-EOM
+ _msg "You disgustingly look at the Bolognese sauce, but decide to keep it."
;;
esac
}
diff --git a/act-i/Work_Desk.dcgi b/act-i/Work_Desk.dcgi
@@ -24,7 +24,6 @@ cat <<EOM
[1|Check bookshelf|$path/bookshelf.dcgi|server|port]
[1|Check inventory|$path/inventory.dcgi|server|port]
-
EOM
navigation
diff --git a/act-i/bookshelf.dcgi b/act-i/bookshelf.dcgi
@@ -3,14 +3,8 @@
. config
. functions
-cat <<EOM
-You look at the bookshelf, and you recognize some books:
-
-EOM
+_msg "You look at the bookshelf, and you recognize some books:"
list_items_to take $books
-cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
+_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"
diff --git a/act-i/coffeetable.dcgi b/act-i/coffeetable.dcgi
@@ -3,14 +3,8 @@
. config
. functions
-cat <<EOM
-You look at the coffee table, and you see:
-
-EOM
+_msg "You look at the coffee table, and you see:"
list_items_to take "$hipsters/coffeetable"
-cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
+_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"
diff --git a/act-i/functions b/act-i/functions
@@ -13,6 +13,7 @@ navigation() {
"
current="$(cat $savegame/room)"
+ echo
for i in $locations; do
if ! [ "$current" = "$i" ]; then
echo "[1|Go to $i|$path/$i.dcgi|server|port]"
@@ -20,6 +21,17 @@ navigation() {
done
}
+_msg() {
+ echo
+ echo "$*" | fmt --width=109 | sed 's/\t//g'
+}
+
+dropsauce() {
+ [ -f "$hipsters/$1/Plate_of_Bolognese_Sauce" ] && {
+ mv "$hipsters/$1/Plate_of_Bolognese_Sauce" "$hipsters/coffeetable"
+ }
+}
+
takebeer() {
current="$(cat $savegame/room)"
diff --git a/act-i/index.dcgi b/act-i/index.dcgi
@@ -1,6 +1,7 @@
#!/bin/sh
. config
+. functions
cat <<EOM
@@ -18,17 +19,9 @@ A Bitreich FOSDEM adventure... 02 Feb 2018 A.D.
EOM
if [ -f "$savegame/room" ]; then
- cat <<EOM
-
-[1|Continue adventure!|$path/$(cat ${savegame}/room).dcgi|server|port]
-
-EOM
+ _msg "[1|Continue adventure!|$path/$(cat ${savegame}/room).dcgi|server|port]"
else
- cat <<EOM
-
-[1|Start adventure!|$path/start.dcgi|server|port]
-
-EOM
+ _msg "[1|Start adventure!|$path/start.dcgi|server|port]"
fi
echo "[1|Go back :(|/dotg/index.gph|server|port]"
diff --git a/act-i/inventory.dcgi b/act-i/inventory.dcgi
@@ -3,14 +3,8 @@
. config
. functions
-cat <<EOM
-You check your hands, backpack and pockets and find:
-
-EOM
+_msg "You check your hands, backpack and pockets and find:"
list_items_to use $inventory
- cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
+_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"
diff --git a/act-i/r1-closet.dcgi b/act-i/r1-closet.dcgi
@@ -1,28 +1,21 @@
#!/bin/sh
. config
+. functions
if [ -f "$inventory/.letusfuck" ]; then
- cat <<EOM
+ _msg 'As you open the closet, the two girls from the work desk enter the
+ bedroom...
-As you open the closet, the two girls from the work desk enter the
-bedroom...
+ "Hey you" - They smile.
-"Hey you" - They smile.
+ "Thank you for the beers! We are all out bored by that work. Do you
+ want to have some fun?"
-"Thank you for the beers! We're all out bored by that work. Do you
-want to have some fun?"
-
-You're left to no choice but to lock the bedroom door and say:
-[1|Let us fuck.|$path/sex.dcgi|server|port]
-
-EOM
+ You are left to no choice but to lock the bedroom door and say:
+ [1|Let us fuck.|$path/sex.dcgi|server|port]'
else
- cat <<EOM
-
-You find nothing interesting in the closet.
-
-EOM
+ _msg "You find nothing interesting in the closet."
fi
echo "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"
diff --git a/act-i/take.dcgi b/act-i/take.dcgi
@@ -11,21 +11,14 @@ case "$(basename $2)" in
Keychain_with_a_key)
if [ -f "$bedroom1/.notyet" ]; then
- cat <<EOM
+ _msg '"Umm, that is not something you should be taking..."
-"Umm, that's not something you should be taking..."
+ The girls do not let you take the keys.
-The girls don't let you take the keys.
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
+ [1|Exit|$path/$(cat $savegame/room).dcgi|server|port]'
return
- else
- cat <<EOM
-
-The girls smile at you and let you take it.
-EOM
fi
+ _msg "The girls smile at you and let you take it."
;;
esac
diff --git a/act-i/talk-20h.dcgi b/act-i/talk-20h.dcgi
@@ -3,6 +3,7 @@
. config
echo talk-20h > $savegame/room
. maps
+. functions
map_talk20h
diff --git a/act-i/talk-20h.sh b/act-i/talk-20h.sh
@@ -3,124 +3,91 @@ specific_talk_20h() {
case "$item" in
Beers)
- cat <<EOM
-
-You give a beer to your friend. He thanks you and starts drinking it.
-EOM
+ _msg "You give a beer to your friend. He thanks you and starts drinking it."
givebeer "$item"
;;
- Chocolate_Milks)
- cat <<EOM
-Your friend takes the chocolate milk and pours it all over the Macbook
-guy's testicles to cool them down.
-EOM
+ Chocolate_Milks)
+ _msg "Your friend takes the chocolate milk and pours it all over the Macbook
+ guy's testicles to cool them down."
givebeer "$item"
;;
- Locked_computer)
- cat <<EOM
-Your friend takes the locked computer and installs Gentoo on it while
-uploading the old content to the cloud.
-EOM
+ Locked_computer)
+ _msg "Your friend takes the locked computer and installs Gentoo on it while
+ uploading the old content to the cloud."
mv "$inventory/$item" "$hipsters/20h/$item"
;;
- Smartphone)
- cat <<EOM
-Your friend takes the smartphone and calls father christmas to bring
-some elves for fun.
-EOM
+ Smartphone)
+ _msg "Your friend takes the smartphone and calls father christmas to bring
+ some elves for fun."
printf 1 > "$inventory/.elvesarehere"
;;
- Used_condom)
- cat <<EOM
-Your friend takes the used condom, blows it up using heat from the
-Macbook guy's produced heat and gives you back a balloon.
-EOM
+ Used_condom)
+ _msg "Your friend takes the used condom, blows it up using heat from the
+ Macbook guy's produced heat and gives you back a balloon."
mv "$inventory/$item" "$inventory/Condom_balloon"
;;
- White_Lighter)
- cat <<EOM
-Your friend asks for the red lighter.
-EOM
+ White_Lighter)
+ _msg "Your friend asks for the red lighter."
;;
- Red_Lighter)
- cat <<EOM
-Your friend uses the red lighter to start the fire of the revolution.
-EOM
+ Red_Lighter)
+ _msg "Your friend uses the red lighter to start the fire of the revolution."
printf 1 > "$inventory/.revolutionstarted"
;;
- Black_dildo)
- cat <<EOM
-You give the black dildo to your friend. He smiles perversly and sticks it
-in his butt.
-EOM
+ Black_dildo)
+ _msg "You give the black dildo to your friend. He smiles perversly and sticks it
+ in his butt."
mv "$inventory/$item" "$hipsters/20h"
;;
- Also_sprach_Zarathustra)
- cat <<EOM
-God dies.
+ Also_sprach_Zarathustra)
+ _msg "God dies.
-Your friend takes the book and starts babbling about the meaning of life.
-EOM
- if [ -f "$hipsters/20h/Plate_of_Bolognese_Sauce" ]; then
- mv "$hipsters/20h/Plate_of_Bolognese_Sauce" "$hipsters/coffeetable"
- fi
+ Your friend takes the book and starts babbling about the meaning of life."
+ dropsauce 20h
mv "$inventory/$item" "$hipsters/20h"
printf 1 > "$hipsters/20h/.meaningoflife"
;;
- The_Birth_of_Tragedy)
- cat <<EOM
-"Christianity is bad, mmkay" - He tries to tell a meme.
+ The_Birth_of_Tragedy)
+ _msg '"Christianity is bad, mmkay" - He tries to tell a meme.
-Your friend takes the book from you and starts babbling about the meaning of
-life.
-EOM
- if [ -f "$hipsters/20h/Plate_of_Bolognese_Sauce" ]; then
- mv "$hipsters/20h/Plate_of_Bolognese_Sauce" "$hipsters/coffeetable"
- fi
+ Your friend takes the book from you and starts babbling about the meaning of life.'
+ dropsauce 20h
mv "$inventory/$item" "$hipsters/20h"
printf 1 > "$hipsters/20h/.meaningoflife"
;;
+
Siddhartha)
- cat <<EOM
-"Religions suck." - He says.
+ _msg '"Religions suck." - He says.
-You nod.
-EOM
+ You nod.'
;;
- The_C_Programming_Language)
- cat <<EOM
-"Nice find! Keep it. It could be of good use." - Your friend says.
+ The_C_Programming_Language)
+ _msg '"Nice find! Keep it. It could be of good use." - Your friend says.
-You tuck the book back in your backpack.
-EOM
+ You tuck the book back in your backpack.'
;;
- Developing_NodeJS)
- cat <<EOM
-Your friend starts manically laughing.
+ Developing_NodeJS)
+ _msg 'Your friend starts manically laughing.
-"Maybe give it to those nerds behind you!" - He grins.
+ "Maybe give it to those nerds behind you!" - He grins.
-You tuck the book back in your backpack.
-EOM
+ You tuck the book back in your backpack.'
;;
- Sex_drugs_and_cocoa_puffs)
- cat <<EOM
-"Drugs? No. But the other two will do"
+ Sex_drugs_and_cocoa_puffs)
+ _msg '"Drugs? No. But the other two will do"
-He takes the book from you and smiles.
-EOM
+ He takes the book from you and smiles.'
mv "$item" "$hipsters/20h"
;;
esac
diff --git a/act-i/talk-balcony.dcgi b/act-i/talk-balcony.dcgi
@@ -3,6 +3,7 @@
. config
echo talk-balcony > $savegame/room
. maps
+. functions
map_talkbalcony
diff --git a/act-i/talk-gentoo.dcgi b/act-i/talk-gentoo.dcgi
@@ -3,21 +3,28 @@
. config
echo talk-gentoo > $savegame/room
. maps
+. functions
map_talkgentoo
-cat <<EOM
-## HIPSTER AREA (HIP)
+_msg "## HIPSTER AREA (HIP)"
+
+if [ -f "$hipsters/obese/.takingashit" ]; then
+ msg "The yoghurt did not bode well for the spaniard. He's in the toilet."
+else
+
+ cat <<EOM
You smalltalk with the spaniard. It turns out he is a Gentoo
developer.
Your friend and you acknowledge this.
The spaniard is eating a plate of bolognese sauce.
+EOM
+fi
+_msg "[1|Check inventory|$path/inventory.dcgi|server|port]
-[1|Check inventory|$path/inventory.dcgi|server|port]
+ [1|Quit the conversation|$path/Hipster_Area.dcgi|server|port]"
-[1|Quit the conversation|$path/Hipster_Area.dcgi|server|port]
-EOM
diff --git a/act-i/talk-gentoo.sh b/act-i/talk-gentoo.sh
@@ -2,89 +2,68 @@ specific_talk_gentoo() {
item="$1"
if [ -f "$hipsters/obese/.takingashit" ]; then
- cat <<EOM
-
-The yoghurt did not bode well for the spaniard. He's in the toilet.
-EOM
+ msg "The yoghurt did not bode well for the spaniard. He's in the toilet."
return
fi
case "$item" in
Old_Thinkpad)
- cat <<EOM
-
-You whip out your old Thinkpad and show the spaniard the amazing
-Gentoo Hardened setup you have.
+ _msg "
+ You whip out your old Thinkpad and show the spaniard the amazing
+ Gentoo Hardened setup you have.
-The spaniard is butthurt that you have access to latest Grsecurity
-patches so he wants to start plotting murder against you.
+ The spaniard is butthurt that you have access to latest Grsecurity
+ patches so he wants to start plotting murder against you.
-You realize if you just start walking away in a normal tempo he would
-be unable to catch up.
+ You realize if you just start walking away in a normal tempo he would
+ be unable to catch up.
-You put your laptop back in your backpack.
-EOM
+ You put your laptop back in your backpack."
;;
- Plate_of_Bolognese_Sauce)
- cat <<EOM
-You give a plate of Bolognese sauce to the spaniard.
+ Plate_of_Bolognese_Sauce)
+ _msg "
+ You give a plate of Bolognese sauce to the spaniard.
-He thanks you and starts eating it swiftly.
-EOM
+ He thanks you and starts eating it swiftly."
mv "$inventory/$item" "$hipsters/obese/"
;;
+
Beers)
- cat <<EOM
-You offer a beer to the spaniard. He refuses.
+ _msg "You offer a beer to the spaniard. He refuses.
-Is it because it makes bellies big, you ponder...
-EOM
+ Is it because it makes bellies big, you ponder..."
;;
- Chocolate_Milks)
- cat <<EOM
-You give a chocolate milk bottle to the spaniard. He thanks you and
-drinks it in one sip.
-EOM
+ Chocolate_Milks)
+ _msg "You give a chocolate milk bottle to the spaniard. He thanks you and
+ drinks it in one sip."
givebeer "$item"
;;
+
Old_yoghurt)
- cat <<EOM
+ _msg"You give the old yoghurt to the spaniard. He starts eating it.
-You give the old yoghurt to the spaniard. He starts eating it.
+ You hear his stomach gurgling. Struggling, but he manages to get
+ up and start walking towards the toilet."
-You hear his stomach gurgling. Struggling, but he manages to get
-up and start walking towards the toilet.
-EOM
printf 1 > "$hipsters/obese/.takingashit"
cp -f "$hipsters/obese/Plate_of_Bolognese_Sauce" "$hipsters/coffeetable"
;;
+
The_Birth_of_Tragedy)
- cat <<EOM
-"Man, christianity sucks, man." - He says while gasping.
+ _msg '"Man, christianity sucks, man." - He says while gasping.
-You nod.
-EOM
+ You nod.'
;;
- The_C_Programming_Language)
- cat <<EOM
-You show the K&R book to the spaniard. His head explodes.
-EOM
+ The_C_Programming_Language)
+ _msg "You show the K&R book to the spaniard. His head explodes."
printf 1 > "$hipsters/obese/.dead"
;;
- Developing_NodeJS)
- cat <<EOM
-"Man, nodejs sucks, man." - He says while gasping.
-EOM
- ;;
- *)
- cat <<EOM
-
-$item is of no use here.
-EOM
+ Developing_NodeJS)
+ _msg '"Man, nodejs sucks, man." - He says while gasping.'
;;
esac
}
diff --git a/act-i/talk-girls.sh b/act-i/talk-girls.sh
@@ -4,52 +4,43 @@ specific_talk_girls() {
Beers)
oldcount="$(cat $inventory/Beers)"
if [ "$oldcount" -lt 2 ]; then
- echo "You don't have enough beers to give."
+ _msg "You don't have enough beers to give."
else
- cat <<EOM
+ _msg 'You hand over two beers to the girls.
-You hand over two beers to the girls.
+ "Why thank you! This sure is nice." - They smile.
-"Why thank you! This sure is nice." - They smile.
+ "Say, could you do us a favor? There is a thing in the closet in the
+ small bedroom over there. Would you mind going there and bringing it
+ back to us?" - One of the girls asks.
-"Say, could you do us a favor? There is a thing in the closet in the
-small bedroom over there. Would you mind going there and bringing it
-back to us?" - One of the girls asks.
+ "Hm, what is it?" - You ask.
-"Hm, what is it?" - You ask.
+ "Eh, just go, you will ll figure it out when you see it" - The other one winks.
-"Eh, just go, you'll figure it out when you see it" - The other one winks.
+ You wonder for a short second, and say: "Ah well, why not!".
-You wonder for a short second, and say: "Ah well, why not!".
-
-You smile.
-EOM
- printf 1 > "$inventory/.letusfuck"
+ You smile.'
+ printf 1 > "$inventory/.letusfuck"
fi
;;
- Black_dildo)
- cat <<EOM
-You whip out a big black dildo in front of the girls. They laugh
-because they know what's up. Anyone else would be disgusted/shocked.
-EOM
+ Black_dildo)
+ _msg "You whip out a big black dildo in front of the girls. They laugh
+ because they know what's up. Anyone else would be disgusted/shocked."
;;
- Baby_and_child_care)
- cat <<EOM
-You show the Baby and child care book to the girls, obviously trolling.
-They look confused and somewhat worried.
-EOM
+ Baby_and_child_care)
+ _msg "You show the Baby and child care book to the girls, obviously trolling.
+ They look confused and somewhat worried."
;;
- To_Kill_a_Mockingbird)
- cat <<EOM
-"One of my favorite books!", one of the girls says.
+ To_Kill_a_Mockingbird)
+ _msg '"One of my favorite books!", one of the girls says.
-You hand the book over to her, and say: "Enjoy it".
+ You hand the book over to her, and say: "Enjoy it".
-You wink at her.
-EOM
+ You wink at her.'
mv "$inventory/$item" "$books"
;;
esac
diff --git a/act-i/talk-hipster.dcgi b/act-i/talk-hipster.dcgi
@@ -3,6 +3,7 @@
. config
echo talk-hipster > $savegame/room
. maps
+. functions
map_talkhipster
diff --git a/act-i/talk-hipster.sh b/act-i/talk-hipster.sh
@@ -3,37 +3,28 @@ specific_talk_hipster() {
case "$item" in
Black_dildo)
- cat <<EOM
+ _msg "You make gay jokes at the hipster.
-You make gay jokes at the hipster.
-
-His eyes tear up.
-EOM
+ His eyes tear up."
;;
- To_Kill_a_Mockingbird)
- cat <<EOM
-"Ha, did you know my name is Atticus?"
+ To_Kill_a_Mockingbird)
+ _msg '"Ha, did you know my name is Atticus?"
-You're shocked.
-EOM
+ You are shocked.'
;;
- Fight_Club)
- cat <<EOM
-"Oh wow! That's one of my favorite movies. I didn't know they wrote
-a book after it... I probably won't read it, but cool!"
+ Fight_Club)
+ _msg "Oh wow! That's one of my favorite movies. I didn't know they wrote
+ a book after it... I probably won't read it, but cool!
-You're shocked. You take a sip of rakia to relax.
-EOM
+ You are shocked. You take a sip of rakia to recover"
;;
- The_C_Programming_Language)
- cat <<EOM
-He is shocked.
+ The_C_Programming_Language)
+ _msg "He is shocked.
-You're shocked.
-EOM
+ You're shocked."
;;
esac
}
diff --git a/act-i/talk-nerds.dcgi b/act-i/talk-nerds.dcgi
@@ -7,43 +7,32 @@ echo talk-nerds > $savegame/room
map_talknerds
-cat <<EOM
-## HIPSTER AREA (HIP)
-EOM
+_msg "## HIPSTER AREA (HIP)"
if [ -f "$inventory/.nerdsmoved" ]; then
- cat <<EOM
+ _msg "The nerds seem to have left the machine in a usable state. You're surprised.
-The nerds seem to have left the machine in a usable state. You're
-surprised.
-
-You see:
-EOM
+ You see:"
list_items_to use $nextbox
- cat <<EOM
+_msg "[1|Check inventory|$path/inventory.dcgi|server|port]
-[1|Check inventory|$path/inventory.dcgi|server|port]
+ [1|Leave the computer|$path/Hipster_Area.dcgi|server|port]"
-[1|Leave the computer|$path/Hipster_Area.dcgi|server|port]
-EOM
else
- cat <<EOM
-
-You take a look at what the nerds are doing. They seem to be
-ttrying to find a C compiler on the NeXT machine. They are
-not successful.
+ _msg "You take a look at what the nerds are doing. They seem to be
+ ttrying to find a C compiler on the NeXT machine. They are
+ not successful.
-You ask if you can use the keyboard, they do not let you and
-diss you off instead.
+ You ask if you can use the keyboard, they do not let you and
+ diss you off instead.
-[1|Check inventory|$path/inventory.dcgi|server|port]
+ [1|Check inventory|$path/inventory.dcgi|server|port]
-[1|Quit the conversation|$path/Hipster_Area.dcgi|server|port]
-EOM
+ [1|Quit the conversation|$path/Hipster_Area.dcgi|server|port]"
fi
diff --git a/act-i/talk-nerds.sh b/act-i/talk-nerds.sh
@@ -2,89 +2,61 @@ specific_talk_nerds() {
item="$1"
if [ -f "$inventory/.nerdsmoved" ]; then
- cat <<EOM
-
-The nerds seem to have left.
-
-EOM
+ _msg "The nerds seem to have left."
case "$item" in
The_C_Programming_Language)
- cat <<EOM
-
-You use the power of C to flip bytes and bang bits...
-EOM
+ _msg "You use the power of C to flip bytes and bang bits..."
[ -f "$inventory/.notyet" ] || {
- cat <<EOM
-Accidentally, you activate a
-[h|time machine|URL:ssh://time-machine@bitreich.org|server|port]
-
+ _msg "Accidentally, you activate a
+ [h|time machine|URL:ssh://time-machine@bitreich.org|server|port]
-You have finished Act I.
+ You have finished Act I.
-[1|To to Act II|/dotg/act-ii|server|port]
-EOM
- rm -f "$nextbox/Terminal" "$nextbox/Keyboard" \
- "$nextbox/Mouse" "$nextbox/The_C_Programming_Language"
- printf 1 > "$inventory/.timemachineactivated"
+ [1|Go to Act II|/dotg/act-ii|server|port]"
+ rm -f "$nextbox/Terminal" "$nextbox/Keyboard" \
+ "$nextbox/Mouse" "$nextbox/The_C_Programming_Language"
+ printf 1 > "$inventory/.timemachineactivated"
}
;;
- Terminal|Keyboard|Mouse)
- cat <<EOM
-You try using the NeXT computer, but you're unsuccessful.
-EOM
- ;;
- *)
- cat <<EOM
-$item is of no use here.
-EOM
+ Terminal|Keyboard|Mouse)
+ _msg "You try using the NeXT computer, but you're unsuccessful."
;;
esac
+
else
+
case "$item" in
Beers|Chocolate_Milks)
- cat <<EOM
-
-The nerds steal all your $item.
-EOM
+ _msg "The nerds steal all your $item."
rm -f "$inventory/$item"
;;
- The_C_Programming_Language)
- cat <<EOM
-The nerds take $item from you and try to type in examples in the
-NeXT console.
+ The_C_Programming_Language)
+ _msg "The nerds take $item from you and try to type in examples in the
+ NeXT console.
-They seem to be failing.
-EOM
+ They seem to be failing."
mv "$inventory/$item" "$nextbox"
;;
- Developing_NodeJS)
- cat <<EOM
-As you pull out the book from your backpack, one of the nerds catches
-a glance at it. He loudly points at it.
+ Developing_NodeJS)
+ _msg "As you pull out the book from your backpack, one of the nerds catches
+ a glance at it. He loudly points at it.
-The other nerds look at it and forcefully take it away from you. They
-leave the area and move towards somewhere else.
-EOM
+ The other nerds look at it and forcefully take it away from you. They
+ leave the area and move towards somewhere else."
rm -f "$inventory/$item"
printf 1 > "$inventory/.nerdsmoved"
;;
- Sex_drugs_and_cocoa_puffs)
- cat <<EOM
-The virgins try to convince you they're not.
+ Sex_drugs_and_cocoa_puffs)
+ _msg "The virgins try to convince you they're not.
-(Developer note: this is actually a good book, unrelated to the context
-it is presented in-game. Read it ;)
-EOM
+ (Developer note: this is actually a good book, unrelated to the context
+ it is presented in-game. Read it ;)"
;;
- *)
- cat <<EOM
-$item is of no use here.
-EOM
esac
fi # !nerdsmoved
}
diff --git a/act-i/use.dcgi b/act-i/use.dcgi
@@ -22,7 +22,4 @@ case "$call" in
;;
esac
-cat <<EOM
-
-[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]
-EOM
+_msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"