Advertisement
plirof2

CSSCGC idea adventuron Entry sorter

Oct 19th, 2023 (edited)
892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. csscgc idea
  2. adventuron/lantern
  3. Entry sorter
  4. make a php script that generated objects of all entries of csscgc and some random ratings (graphics, gameplay, fun)
  5. this will be copiled using Daad
  6.  
  7. You have a big warehouse with all games.
  8. You must label some smaller room with the year and tranfer the games from the warehouse to the correct game room.
  9.  
  10. You have a counter for each room. when all counters are zero you win
  11.  
  12.  
  13. ----------------------------------
  14. Adventuron
  15.  
  16.  
  17. start_at = outside_cave
  18.  
  19. ## Defines locations in the world
  20.  
  21. locations {
  22.    lakeside      : location "You are by the side of a beautiful lake." ;
  23.    outside_cave  : location "You are outside a cave. The entrance lies north." ;
  24.    treasure_room : location "You are in a room of treasures." ;
  25. }
  26.  
  27. # Defines things in the world (scenery cannot be carried)
  28.  
  29. objects {
  30.    apple          : object  "an apple" msg="Delicious." at = "lakeside";
  31.    troll          : scenery "an enormous troll"  at = "outside_cave" msg="Hungry.";
  32. }
  33.    
  34. connections {
  35.  
  36.    ## Connects locations together (bidirectional)
  37.    
  38.    from, direction, to = [
  39.       lakeside,     north, outside_cave
  40.       outside_cave, north, treasure_room,
  41.    ]
  42. }
  43.  
  44. barriers {
  45.  
  46.    ## Blocks Access To Cave Whilst Troll Exists (with message)
  47.    
  48.    block_cave : block {
  49.       location           = treasure_room
  50.       message            = The troll is guarding the cave.
  51.       block_when_exists  = troll
  52.       show_blocked_exit  = true
  53.    }
  54.    
  55. }
  56.  
  57. ## Print the objective when the game starts
  58.  
  59. on_startup {
  60.    : print "CAVE OF MAGIC - EVEN SMALLER EDITION !" ;
  61.    : press_any_key ;
  62.    : clear_screen;
  63.    : print "ENTER THE CAVE, FIND THE TREASURE." ;
  64.    : press_any_key ;
  65. }
  66.  
  67. ## Execute this every time a player moves or redescribes a location
  68.  
  69. on_describe {
  70.    : if (is_at "treasure_room" ) {
  71.       : print "CONGRATULATIONS YOU FOUND THE TREASURE. YOU WIN!" ;
  72.       : win_game ;
  73.    }
  74. }
  75.  
  76. ## Test VERB NOUN that the player types and executes conditional actions
  77.  
  78. on_command {
  79.    : match "give apple"  {
  80.       : if (is_present "troll" && is_carried "apple") {
  81.          : print   "The troll eats the apple then wanders off." ;
  82.          : destroy "apple" ;
  83.          : destroy "troll" ;
  84.       }
  85.    }
  86. }
  87.  
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement