Cloak of Darkness - 1999
A playthrough follows after the source.
Source:
start_at = foyer intro_graphic = cod setup / dark_expression = is_dark themes / theme layout = "H LG D O" ; // We customize the layout to remove automatic exit listing integers / message_tidyness : integer "3" min="0" ; booleans / is_dark : boolean_dynamic {(is_at "bar" && is_present "cloak" )} // dark if at bar with cloak present (worn or unworn) rooms { foyer : room "You stand in the foyer. Exits lead north, south, and west." header="Foyer" ; cloakroom : room "You see a hook.\nThe foyer lies to the east." header="Cloakroom" ; bar : room "You see a message scrawled in sawdust." header="Bar" ; } navigation { from, direction, to = [ foyer, south, bar, foyer, west, cloakroom, ] } objects { cloak : wearable "a black velvet cloak" start_at="inventory" initially_worn="true" examine_message="The cloak appears to be light absorbent." ; hook : scenery "a hook" conspicuous="false" start_at="cloakroom" ; sawdust : scenery "sawdust" conspicuous="false" start_at="bar" ; } on_command { : if (is_at "bar") { : match "n _" { : goto "foyer" ; : redescribe ; } : match "examine sawdust; read sawdust; examine message; read message" { : if (message_tidyness == 0) { : print "The message seems to have been disrupted, you read, \"You have lost!\"." ; } : else { : print "The message reads ... you have won the game !" ; } : end_game ; } : if (is_dark) { : print "You disturb something in the dark" ; : decrement "message_tidyness" ; } } : else_if (is_at "foyer") { : match "n _" { : print "You only just arrived, no need to leave now !" ; : done ; } } : else_if (is_at "cloakroom" && is_exists "cloak") { : match "hang cloak" { : print "You hang the cloak on the hook." ; : destroy "cloak" ; : done; } } } assets { graphics { cod : base64_png "iVBORw0KGgoAAAANSUhEUgAAAQAAAACgCAIAAABseyVrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAiOSURBVHhe7dhLluWoDgXQHMhr1vxnVnN4XinFKYKPEDLGNj570chAH4ytW436Q0RERERERERERERERERERERERERERERERERERETq3//9012aSrSNbMRPLm1K9HzZ7B5LA21Zvr20huiBLprUtC2Wxoie4+rRxPRffRBRBOeSvus5/2Hm75Bu8Jyx4w+AbsAfAH0afwD0afwB0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vmWV+uVPVTXP2cap2k037FE9OlVEV7jkEp4weFCjZh/PyklbNPN/hYEcDWt26p0iCnVNlV8V6BshBQ8eN5m+le3O8nVaaEUp5mrSiAa1u3YO6CS0XtRWj5ch3VjnTNmTcXEJYuluwo4A+1WQ7GmC0sk+RqJHQ0q0KdEZJujTm4C/05Oypem28jmo048k5oFsr2Y6OCh9kRw2eKjS3M9M0rGxfMp08Vcix03aDC+Py6ZIcmzMZaWly+W/8eZLdzYgaVTajZwppzqVlCTvakpVUa5FTje4pvXO6NOzjKUQUmVhpAv48z+429yzh7ymZxtK8hqFkyKqwNPzDju5m1lXTPsaqJmeb8ud5dre5Z4krehrkuKFD02TUYieVRqsJm5h7Pbyv6tKkNmeak91t7lniip5dcqjz6DKz3MkgwU6jx1n/wW4cETna8wDVnG4tEowcojulMypLA7+1QnaVQI6dRnSbdEZlaeBHdVO0SjKeHKKbYZqrS5MK/hz9g+jhMNBYGmjIko+lgR/VTaKtYPpbS/OItpeN/rE0QERERERERERERERERERERERENOTPn/8DBNss8j34718AAAAASUVORK5CYII="; } }
Playthrough:
How does this work, I can't save the code and have it work as .html, and if I drop it in Adventuron Classroom is comes up with a code error on line 2 intro_graphic = cod
ReplyDeleteHow do you pull a graphic into Adventuron Classroom?