Room In_Sloping_Corridor "Sloping Corridor" with name 'sloping' 'corridor', description "You are in a long winding corridor sloping out of sight in both directions.", d_to In_Large_Low_Room, u_to On_Sw_Side_Of_Chasm, cant_go "The corridor slopes steeply up and down."; Room On_Sw_Side_Of_Chasm "On SW Side of Chasm" with name 'southwest' 'sw' 'side' 'of' 'chasm', description "You are on one side of a large, deep chasm. A heavy white mist rising up from below obscures all view of the far side. A southwest path leads away from the chasm into a winding corridor.", ne_to CrossRicketyBridge, sw_to In_Sloping_Corridor, d_to In_Sloping_Corridor, cant_go "The path winds southwest.", before [; Jump: if (RicketyBridge in self) "I respectfully suggest you go across the bridge instead of jumping."; deadflag = 1; "You didn't make it."; ]; [ CrossRicketyBridge; if (Troll.has_caught_treasure || Troll in nothing) { Troll.has_caught_treasure = false; if (Bear.is_following_you) { remove Bear; remove self; give Wreckage ~absent; remove RicketyBridge; give RicketyBridge absent; StopDaemon(Bear); deadflag = 1; "Just as you reach the other side, the bridge buckles beneath the weight of the bear, which was still following you around. You scrabble desperately for support, but as the bridge collapses you stumble back and fall into the chasm."; } return RicketyBridge; } if (Troll in location) "The troll refuses to let you cross."; move Troll to location; "The troll steps out from beneath the bridge and blocks your way."; ]; Object -> RicketyBridge "rickety bridge" with name 'bridge' 'rickety' 'unstable' 'wobbly' 'rope', description "It just looks like an ordinary, but unstable, bridge.", describe [; print "A rickety wooden bridge extends across the chasm, vanishing into the mist. ^^ A sign posted on the bridge reads, ~Stop! Pay troll!~^"; if (Troll notin location) "The troll is nowhere to be seen."; rtrue; ], door_dir [; if (location == On_Sw_Side_Of_Chasm) return ne_to; return sw_to; ], door_to [; if (location == On_Sw_Side_Of_Chasm) return On_Ne_Side_Of_Chasm; return On_Sw_Side_Of_Chasm; ], found_in On_Sw_Side_Of_Chasm On_Ne_Side_Of_Chasm, has static door open; Object -> -> Troll "burly troll" with name 'troll' 'burly', description "Trolls are close relatives with rocks and have skin as tough as that of a rhinoceros.", initial "A burly troll stands by the bridge and insists you throw him a treasure before you may cross.", life [; Attack: "The troll laughs aloud at your pitiful attempt to injure him."; ThrowAt, Give: if (noun ofclass Treasure) { remove noun; move self to RicketyBridge; self.has_caught_treasure = true; score = score - 5; "The troll catches your treasure and scurries away out of sight."; } if (noun == tasty_food) "Gluttony is not one of the troll's vices. Avarice, however, is."; "The troll deftly catches ", (the) noun, ", examines it carefully, and tosses it back, declaring, ~Good workmanship, but it's not valuable enough.~"; Order: "You'll be lucky."; Answer, Ask: "Trolls make poor conversation."; ], has_caught_treasure false, has animate; Object Wreckage "wreckage of bridge" with name 'wreckage' 'wreck' 'bridge' 'dead' 'bear', initial "The wreckage of the troll bridge (and a dead bear) can be seen at the bottom of the chasm.", before [; "The wreckage is too far below."; ], found_in On_Sw_Side_Of_Chasm On_Ne_Side_Of_Chasm, has static absent; ! ------------------------------------------------------------------------------ Room On_Ne_Side_Of_Chasm "On NE Side of Chasm" with name 'northeast' 'ne' 'side' 'of' 'chasm', description "You are on the far side of the chasm. A northeast path leads away from the chasm on this side.", sw_to CrossRicketyBridge, ne_to In_Corridor, before [; Jump: if (RicketyBridge in self) "I respectfully suggest you go across the bridge instead of jumping."; deadflag = 1; "You didn't make it."; ], has nodwarf; Room In_Corridor "In Corridor" with name 'corridor', description "You're in a long east/west corridor. A faint rumbling noise can be heard in the distance.", w_to On_Ne_Side_Of_Chasm, e_to At_Fork_In_Path, has nodwarf;