Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- csscgc idea
- adventuron/lantern
- Entry sorter
- make a php script that generated objects of all entries of csscgc and some random ratings (graphics, gameplay, fun)
- this will be copiled using Daad
- You have a big warehouse with all games.
- You must label some smaller room with the year and tranfer the games from the warehouse to the correct game room.
- You have a counter for each room. when all counters are zero you win
- ----------------------------------
- Adventuron
- start_at = outside_cave
- ## Defines locations in the world
- locations {
- lakeside : location "You are by the side of a beautiful lake." ;
- outside_cave : location "You are outside a cave. The entrance lies north." ;
- treasure_room : location "You are in a room of treasures." ;
- }
- # Defines things in the world (scenery cannot be carried)
- objects {
- apple : object "an apple" msg="Delicious." at = "lakeside";
- troll : scenery "an enormous troll" at = "outside_cave" msg="Hungry.";
- }
- connections {
- ## Connects locations together (bidirectional)
- from, direction, to = [
- lakeside, north, outside_cave
- outside_cave, north, treasure_room,
- ]
- }
- barriers {
- ## Blocks Access To Cave Whilst Troll Exists (with message)
- block_cave : block {
- location = treasure_room
- message = The troll is guarding the cave.
- block_when_exists = troll
- show_blocked_exit = true
- }
- }
- ## Print the objective when the game starts
- on_startup {
- : print "CAVE OF MAGIC - EVEN SMALLER EDITION !" ;
- : press_any_key ;
- : clear_screen;
- : print "ENTER THE CAVE, FIND THE TREASURE." ;
- : press_any_key ;
- }
- ## Execute this every time a player moves or redescribes a location
- on_describe {
- : if (is_at "treasure_room" ) {
- : print "CONGRATULATIONS YOU FOUND THE TREASURE. YOU WIN!" ;
- : win_game ;
- }
- }
- ## Test VERB NOUN that the player types and executes conditional actions
- on_command {
- : match "give apple" {
- : if (is_present "troll" && is_carried "apple") {
- : print "The troll eats the apple then wanders off." ;
- : destroy "apple" ;
- : destroy "troll" ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement