Skip to content

Instantly share code, notes, and snippets.

@alexwarren
Created July 6, 2014 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexwarren/6d4aeb990ae14085189a to your computer and use it in GitHub Desktop.
Save alexwarren/6d4aeb990ae14085189a to your computer and use it in GitHub Desktop.
CodePlex Issue #783 Plain Text Attachments
<!--Saved by Quest Editor v5.0-->
<asl version="500">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="The Mysterious Courtyard">
<author>xordevoreaux</author>
<version>1.0</version>
<enablehyperlinks />
</game>
<object name="mysterious_courtyard">
<inherit name="editor_room" />
<alias>Mysterious Courtyard</alias>
</object>
<object name="reality">
<inherit name="editor_object" />
<object name="reality_street_1100">
<inherit name="editor_room" />
<alias>Fantasy Avenue</alias>
<description>This is the 1100 block of Fantasy Avenue. Interestingly, the western portion of the Fantasy Avenue seems blocked by miscellaneous wrecked cars, downed power lines, and other impediments to travel.</description>
<descprefix>You are on</descprefix>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<object name="reality_car">
<alias>car</alias>
<descprefix>You are sitting in</descprefix>
<description>You seem to be in a very damaged car.</description>
<lock>Both doors of this car seem to be so badly damaged that there's no way to lock them.</lock>
<displayverbs>Look at; Lock</displayverbs>
<inventoryverbs>Look at; Use</inventoryverbs>
<look>This car looks like it has been in a VERY recent wreck, being a bit crumpled here and there, and smelling alarmingly of burned wires and overheated thingamabobs in the engine, not to mention that it has apparently collided with a street lamp.</look>
<beforefirstenter type="script"><![CDATA[
msg ("As you careen wrecklessly down Fantasy Avenue, avoiding angry mobs and other vehicles, you reach down to turn the dial on the car's radio, looking for any station that may be broadcasting:<br/><br/>...riots continue their seemlingly random attacks in the middle of town as the heatwave continues. Rolling blackouts and water shortages...<br/><br/>You turn the dial again...<br/>")
WaitForKeyPress
msg ("...it's been reported that the mayor and most of the city's staffers have been lifted by helicopter to a position of relative safety outside the city. News reports are coming in that most roads leading from the city are now blocked by armored vehicles and soldiers to prevent the spread of violence to nearby communities...<br/><br/>You turn the dial again...<br/>")
WaitForKeyPress
msg ("...It's the best soap in the world, Fantasy Soap! Gets you cleaner than...<br/><br/>You turn the dial again...<br/>")
WaitForKeyPress
msg ("There's dead silence on the radio, and then a small, frightened voice speaks.<br/><br/>...please, if anyone can hear me, I'm all alone here. The power is out and there's a machine outside making a lot of noise, I think it's keeping some of the lights on. If anyone can hear me, can you please come here? My mother and I were in the station visiting. People came in and did a lot of bad things. Please....<br/><br/>Static replaces the voice. You continue to listen, but the broadcast is dead.<br/><br/>You look up and suddenly swerve to try to miss a crazed rioter, only to smash into a lamp post! <br/>Blackness takes over you.<br/><br/>(press any key)<br/>")
WaitForKeyPress
]]></beforefirstenter>
<object name="player">
<inherit name="defaultplayer" />
<object name="reality_wallet">
<inherit name="container_limited" />
<inherit name="editor_object" />
<hidechildren />
<listchildren />
<listchildrenprefix>Your wallet has:</listchildrenprefix>
<alias>wallet</alias>
<inventoryverbs>Look at; Drop</inventoryverbs>
<take />
<look>This is a brown leather wallet. </look>
<maxobjects type="int">3</maxobjects>
<containerfullmessage>Nothing else can fit in the wallet.</containerfullmessage>
<drop type="boolean">false</drop>
<dropmsg>You think about dropping your wallet, but that's more irresponsible than you're willing to be the moment, so you think better of it.</dropmsg>
<object name="reality_debitcard">
<inherit name="editor_object" />
<alias>debit card</alias>
<look>Yep, it's your card, has your name on it. Expiration date: 04/15/2068. </look>
</object>
<object name="reality_license">
<inherit name="editor_object" />
<alias>driving license</alias>
<look>This is your driver's license. It seems to have expired.</look>
</object>
</object>
</object>
<object name="reality_glovecompartment">
<inherit name="editor_object" />
<inherit name="container_closed" />
<listchildren />
<hidechildren />
<alias>glove compartment</alias>
<displayverbs>Look at; Open; Close</displayverbs>
<inventoryverbs>Look at</inventoryverbs>
<drop type="boolean">false</drop>
<object name="reality_note">
<inherit name="editor_object" />
<look><![CDATA[The note seems to have just a number on it: <br/><br/>4112 <br/><br/>]]></look>
<alias>note</alias>
<take />
<inventoryverbs>Look at; Use; Drop</inventoryverbs>
<read type="script"><![CDATA[
msg ("The note seems to have just a number on it: <br/><br/>4112 ")
]]></read>
</object>
</object>
<object name="reality_ignition">
<inherit name="editor_object" />
<inherit name="container_open" />
<close type="boolean">false</close>
<open type="boolean">false</open>
<hidechildren type="boolean">false</hidechildren>
<listchildren />
<alias>car ignition</alias>
<displayverbs>Look at; Turn</displayverbs>
<turn type="script">
if (Contains (reality_ignition,reality_keys)) {
msg ("The car key jangles as you turn the ignition, but the engine appears to be quite dead. The car does not start.")
}
else {
msg ("The ignition seems to lack a key to be able to turn it. Nothing happens.")
}
</turn>
<object name="reality_keys">
<inherit name="editor_object" />
<alias>key</alias>
<scenery type="boolean">false</scenery>
<look>These seem to be an ordinary car key.</look>
<displayverbs>Look at; Take</displayverbs>
<take />
</object>
</object>
<exit alias="out" to="reality_street_1100">
<script type="script">
msg ("You climb from the car.")
MoveObject (player, reality_street_1100)
</script>
</exit>
</object>
<exit alias="wrecked car" to="reality_car">
<prefix>a</prefix>
</exit>
<exit alias="east" to="reality_street_1200" />
<object name="reality_streetlamp_1100">
<inherit name="editor_object" />
<alias>street lamp</alias>
<look>Leaning far to one side, this street lamp has seen better days. There's apparently a very damaged car against it.</look>
<inventoryverbs>Look at</inventoryverbs>
<displayverbs>Look at</displayverbs>
</object>
<object name="reality_powerlines">
<inherit name="editor_object" />
<alias>power lines</alias>
<scenery />
<look>The power lines flash occasionally with sparks of electricity. Apparently, power has not failed in this area.</look>
<article>the</article>
<gender>them</gender>
</object>
<object name="reality_wreckedcars">
<inherit name="editor_object" />
<scenery />
<gender>them</gender>
<look>There seems to be quite the collection of wrecked cars here. Odd.</look>
<article>them</article>
<alias>wrecked cars</alias>
</object>
<object name="reality_body_01">
<inherit name="editor_object" />
<alias>body of a crazed rioter</alias>
<drop type="boolean">false</drop>
<displayverbs>Look at</displayverbs>
<inventoryverbs>Look at</inventoryverbs>
<look>This is a very dead rioter. There seems to be a tire print across the corpse's chest.</look>
</object>
</object>
<object name="reality_street_1200">
<inherit name="editor_room" />
<description>This is the 1200 block of Fantasy Avenue.</description>
<descprefix>You are on:</descprefix>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<alias>Fantasy Avenue</alias>
<exit alias="west" to="reality_street_1100" />
<exit alias="east" to="reality_street_1300" />
<object name="reality_streetlamp_1200">
<inherit name="editor_object" />
<look>This pristine street lamp is in fine shape, minus a bulb.</look>
<alias>street lamp</alias>
<inventoryverbs>Look at</inventoryverbs>
<displayverbs>Look at</displayverbs>
</object>
<object name="reality_atm">
<inherit name="editor_object" />
<alias>automatic teller machine</alias>
<look><![CDATA[This ATM seems to be in working condition. <br/><br/>]]></look>
<displayverbs>Look at; Swipe card; Enter PIN; Check balance; Make withdrawal</displayverbs>
<Checkbalance type="string"></Checkbalance>
<drop type="boolean">false</drop>
<atm_swiped type="boolean">false</atm_swiped>
<atm_pinned type="boolean">false</atm_pinned>
<Swipecard type="script">
if (Got(reality_debitcard)) {
}
else if (Contains (reality_wallet,reality_debitcard)) {
msg ("You swipe the card in the ATM.")
set (reality_atm, "atm_swiped", true)
}
</Swipecard>
<EnterPIN type="script">
if (reality_atm.atm_swiped = false) {
msg ("You'll need to swipe your card first before you can enter your PIN.")
}
else {
msg ("Type your PIN at any time. Format: PIN xxxx")
}
</EnterPIN>
<useon type="scriptdictionary" />
<tell type="scriptdictionary" />
<alt>ATM</alt>
</object>
</object>
<object name="reality_street_1300">
<inherit name="editor_room" />
<description>This is the 1300 block of Fantasy Avenue.</description>
<descprefix>You are on:</descprefix>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<alias>Fantasy Avenue</alias>
<exit alias="west" to="reality_street_1200" />
<object name="reality_streetlamp_1300">
<inherit name="editor_object" />
<look>This is a magnificent street lamp! It has apparently survived unscathed by both traffic incidents and blown-out bulbs.</look>
<alias>street lamp</alias>
<displayverbs>Look at</displayverbs>
<inventoryverbs>Look at</inventoryverbs>
</object>
</object>
</object>
<verb>
<property>Swipecard</property>
<pattern>Swipe card</pattern>
<defaulttext>You can't Swipe card that.</defaulttext>
</verb>
<verb>
<property>EnterPIN</property>
<pattern>Enter PIN</pattern>
<defaulttext>You can't Enter PIN that.</defaulttext>
</verb>
<verb>
<property>Checkbalance</property>
<pattern>Check balance</pattern>
<defaulttext>You can't Check balance that.</defaulttext>
</verb>
<verb>
<property>Makewithdrawal</property>
<pattern>Make withdrawal</pattern>
<defaulttext>You can't Make withdrawal that.</defaulttext>
</verb>
<verb>
<property>Canceltransaction</property>
<pattern>Cancel transaction</pattern>
<defaulttext>You can't Cancel transaction that.</defaulttext>
</verb>
<command>
<pattern>PIN #text#</pattern>
<script>
if (player.parent = reality_street_1200) {
if (reality_atm.atm_swiped = true) {
if (text = "4112") {
msg ("You successfully enter your PIN.")
set (reality_atm, "atm_pinned", true)
}
else {
msg ("The ATM beeps irritably at you for entering the wrong PIN.")
}
}
}
else {
msg ("There are no ATMs around here to enter your personal identification number.")
}
</script>
</command>
</asl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment