dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

talk-nerds.sh (1924B)


      1 specific_talk_nerds() {
      2 	item="$1"
      3 
      4 	if [ -f "$inventory/.nerdsmoved" ]; then
      5 		_msg "The nerds seem to have left."
      6 
      7 	case "$item" in
      8 		The_C_Programming_Language)
      9 			_msg "You use the power of C to flip bytes and bang bits..."
     10 			if ! [ -f "$inventory/.notyet" ]; then
     11 				_msg "Accidentally, you activate a
     12 					[h|time machine|URL:ssh://time-machine@bitreich.org|server|port]
     13 
     14 					You have completed Act I.
     15 
     16 					Let us know on #bitreich-en (freenode) if you liked it!
     17 
     18 					Find the code at:
     19 					[1|gopher://parazyd.org/1/git/dotg/log.gph|/git/dotg/log.gph|server|port]
     20 
     21 					[1|Go to Act II|/dotg/act-ii|server|port]"
     22 				printf 1 > "$inventory/.timemachineactivated"
     23 				rm -f "$hipsters/obese/.takingashit"
     24 				rm -f "$hipsters/obese/.inkitchensink"
     25 			else
     26 				_msg "Something important is missing."
     27 			fi
     28 			;;
     29 
     30 		Terminal|Keyboard|Mouse)
     31 			_msg "You try using the NeXT computer, but you're unsuccessful."
     32 			;;
     33 	esac
     34 
     35 	else
     36 
     37 	case "$item" in
     38 		Beers|Chocolate_Milks)
     39 			_msg "The nerds steal all your $item."
     40 			rm -f "$inventory/$item"
     41 			;;
     42 
     43 		The_C_Programming_Language)
     44 			_msg "The nerds take $item from you and try to type in examples in the
     45 				NeXT console.
     46 
     47 				They seem to be failing."
     48 			mv "$inventory/$item" "$nextbox"
     49 			;;
     50 
     51 		Developing_NodeJS)
     52 			_msg "As you pull out the book from your backpack, one of the nerds catches
     53 				a glance at it. He loudly points at it.
     54 
     55 				The other nerds look at it and forcefully take it away from you. They
     56 				leave the area and move towards somewhere else."
     57 			rm -f "$inventory/$item"
     58 			printf 1 > "$inventory/.nerdsmoved"
     59 			;;
     60 
     61 		Sex_drugs_and_cocoa_puffs)
     62 			_msg "The virgins try to convince you they're not.
     63 
     64 				(Developer note: this is actually a good book, unrelated to the context
     65 				it is presented in-game. Read it ;)"
     66 			;;
     67 		Condom_balloon)
     68 			_msg "The nerds break your balloon."
     69 			rm -f "$inventory/$item"
     70 			;;
     71 	esac
     72 	fi # !nerdsmoved
     73 }